Hi, I have a question: does anyone know if there i...
# compose-web
s
Hi, I have a question: does anyone know if there is a Composable function that will display HTML code written in String, such as "<h1>Hello World</h1>"? The Text Composable function would just display "<h1>Hello World</h1>". I want to display "Hello World" in the font size of the h1 tag.
s
It worked fine! Thanks for answering!!!
c
Be very careful with what you use it for, though. This is the doorway to all HTML/JS injections. Never use it with something that the user sent.
e
I agree. HTML sanitization is possible but quite tricky, I would avoid having to deal with it if at all possible
c
^ and it's much, much harder than it looks like it is