Answered by
jaylinski
Aug 8, 2025
Replies: 2 comments 2 replies
|
Handlebars doesn't parse HTML. Did you check out the documentation on whitespace-control? |
2 replies
Answer selected by
dzenreda
|
No HTML is being parsed. This is a simple multiline string, created in the first place by the same textarea input. The issue I'm noticing is that it is not displayed correctly if the textarea input is in a partial template. I would like to verify this issue to rule out the possibility that I'm doing something wrong with that string. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Handlebars doesn't parse HTML. Did you check out the documentation on whitespace-control?
Here's an example: https://handlebarsjs.com/playground.html#format=1¤tExample=%7B%22template%22%3A%22Identation%20test%20for%20partials%3A%20%5Cn%20%20%7B%7B~%3E%20myPartial%20text%3Dtext%20%7D%7D%22%2C%22partials%22%3A%5B%7B%22name%22%3A%22myPartial%22%2C%22content%22%3A%22%5Cn%7B%7B%20text%20%7D%7D%22%7D%5D%2C%22input%22%3A%22%7B%5Cn%20%20text%3A%20%5C%22foo%5C%5Cnbar%5C%22%2C%5Cn%7D%5Cn%22%2C%22output%22%3A%22Identation%20test%20for%20partials%3A%5Cnfoo%5Cnbar%22%2C%22preparationScript%22%3A%22%2F%2F%20Handlebars.registerHelper('loud'%2C%20function(string)%20%7B%5Cn%2F%2F%20%20%20return%20st…