Fix: enable dangerous_inner_html for svgs (#2717)

This commit is contained in:
Jonathan Kelley authored and GitHub committed 2024-07-26 23:29:24 +00:00
1 parent 810f8bbfb8
commit 1a66987245
2 files changed
+12

No files matched your search

+6
View File
@@ -95,6 +95,12 @@ fn app() -> Element {
}
}
}
// dangerous_inner_html for both html and svg
div { dangerous_inner_html: "<p>hello dangerous inner html</p>" }
svg { dangerous_inner_html: "<circle r='50' cx='50' cy='50' />" }
// Built-in idents can be used
use {}
link {
as: "asd"