Replies: 2 comments
-
Handlebars doesn't parse HTML. Did you check out the documentation on whitespace-control? |
Beta Was this translation helpful? Give feedback.
0 replies
-
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. |
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.
-
Hello,
I found that in HTML textarea elements, when writing multiline text, show texts with a horizontal whitespace for every line after the first one.
This is happening only when loading text, not at the time of writing it. I realised that it is only happening if the textarea is inside a partial template and the displayed text is passed as an attribute.
In my case, I have a form with a field
description
that is a multiline text.form.handlebars
{{> components/center-info name=center.name description=center.description }}
components/center-info.handlebars
For instance, for a string like this
The representation in the textarea inside the
components/center-info.handlebars
is thisHowever, if I place the textarea outside the component, i.e. in the
form.handlebars
template, it display the string correctlyI think this might be related with the parsing of the attribute 🤔
Thanks
Beta Was this translation helpful? Give feedback.
All reactions