How do I render HTML from a variable in a safe way? #216
slowpoison
started this conversation in
General
Replies: 1 comment
-
You should set h to hi and in your template have: You write your html normally and inject HTML-escaped variables using the <%= %> tags. The documentation explains these concepts. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This just prints the HTML as a string. How do I output direct html. Bonus: how do I do it in a safe way?
Beta Was this translation helpful? Give feedback.
All reactions