You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
html! macro is great. But is there any way to create yew::html::Html from String?
I want to return an SVG from view() function, but the SVG was given as String from other crate.
The text was updated successfully, but these errors were encountered:
Since you are sure your svg is safe (make sure it really is) you could set innerHtml via a noderef.
This would, of course, interact with the diffing algorithm (which makes sure the DOM html corresponds to the one yew has internally) so you should make sure view() is called only once (by returning false from change() and update() )
How you would do this exactly depends on whether you are using web-sys or stdweb
I'm sorry if the question is already there.
html!
macro is great. But is there any way to create yew::html::Html fromString
?I want to return an SVG from
view()
function, but the SVG was given as String from other crate.The text was updated successfully, but these errors were encountered: