string with HTML tags is not rendred #946
Answered
by
joerdav
marcelthiel
asked this question in
Q&A
-
Hi all, I have a problem with one concept and I cannot find answer neither in docs nor in other sources. I have a string variable:
If I want to put it in the table like that:
The result in the browser is: The question is: How to make those tags to be rendered. |
Beta Was this translation helpful? Give feedback.
Answered by
joerdav
Oct 3, 2024
Replies: 1 comment
-
This is a safety feature described here: https://templ.guide/syntax-and-usage/expressions/#escaping It can be circumvented with the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
a-h
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a safety feature described here: https://templ.guide/syntax-and-usage/expressions/#escaping
It can be circumvented with the
Raw
component: https://templ.guide/syntax-and-usage/rendering-raw-html