Umbraco 14 Displaying some html in a modal
# help-with-umbraco
h
I want to display some html in a modal, is there anyway to do that? currently it dispays the tags, but I want it rendered as a lis https://cdn.discordapp.com/attachments/1270349271991849022/1270349272277319681/image.png?ex=66b36074&is=66b20ef4&hm=db06ce49c8064c5cad3f2ec0408e002d6e9c0b722ca836c7ae82a39306a55557&
k
Copy code
js
return html`${unsafeHTML(yourstuff)}`;
I think ?
r
Beat me to it, here's the documentation on it: https://lit.dev/docs/templates/directives/#unsafehtml
k
well your answer is better! 😉
h
Many thanks for the link, that's sorted it 🙂
6 Views