Skip to content

unsafeHTML not working as expected #2253

Answered by aomarks
mbouclas asked this question in Q&A
Discussion options

You must be logged in to vote

html template results needed to be passed to the Lit render function or returned from the LitElement render method in order to be actually rendered to the DOM. Are you trying to render the result in some other way?

Here's an example of unsafeHTML working, maybe you could modify it to debug or reproduce your problem? https://lit.dev/playground/#sample=examples/directive-unsafe-html

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mbouclas
Comment options

@justinfagnani
Comment options

@mbouclas
Comment options

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