Is there a way to drop raw / unsafe html?
I got some Markdown which I’d prefer delivered as a string of HTML-components (statically) to be rendered. 🙂
j
Jilles van Gurp
05/27/2021, 6:57 AM
You can simply access the innerHtml attribute on any element and write to that like you would do in Javascript. You have the full DOM api available to you. So, you can look elements up by id, fiddle with their style and content as much as you like.
h
Hampus Londögård
05/27/2021, 7:02 AM
Oh, nice! thanks 😄
Not too experienced in the webdev world 😞