Skip to content

How could transform a string to DOM? #1381

Answered by gbj
thanhdatvo asked this question in Q&A
Discussion options

You must be logged in to vote

It looks to me like you want the inner_html method on HtmlElement, which you can also use as an attribute in the view macro:
<div inner_html="<p>Hello!</p>"/>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@thanhdatvo
Comment options

Answer selected by thanhdatvo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants