feat: support innerhtml
This commit is contained in:
1 parent
b8085b0742
commit
cfc24f5451
3 files changed
+34
-3
No files matched your search
@@ -108,6 +108,12 @@ pub trait GlobalAttributes {
|
||||
tabindex;
|
||||
title;
|
||||
translate;
|
||||
|
||||
/// dangerous_inner_html is Dioxus's replacement for using innerHTML in the browser DOM. In general, setting
|
||||
/// HTML from code is risky because it’s easy to inadvertently expose your users to a cross-site scripting (XSS)
|
||||
/// attack. So, you can set HTML directly from Dioxus, but you have to type out dangerous_inner_html to remind
|
||||
/// yourself that it’s dangerous
|
||||
dangerous_inner_html;
|
||||
}
|
||||
|
||||
// This macro creates an explicit method call for each of the style attributes.
|
||||
|
||||
Reference in new issue
Block a user