Triple-stash & HTML tags in string #465
Unanswered
rmit-s3617315-Katrine-Ren
asked this question in
Q&A
Replies: 1 comment
-
https://handlebarsjs.com/guide/expressions.html#html-escaping The explaination should be what u are looking for here |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a piece of json data, which contains html tags as string:
I use handlebars to get the data. The ideal output should be:
This is the data
I used {{key}} at first, but the output contains the html tags as plain text:
In the end, the triple stash {{{key}}} helped me solve the problem and achieved the ideal output. However, I have no idea why it works. Could someone please explain the reason behind to me? Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions