This question seems to be similar to [Solved] Handlebar snippets rendered as text instead of html and [SOLVED] Handlebar not executed for dynamically loaded HTML but they both use custom handlebars and externally loaded files or programmatic modifications through scripts.
My issue today is slightly different, and I didn’t manage to adapt any of the solutions in those threads to the issue at hand.
What character can be placed inside a XML string node so that it gets correctly rendered as a newline in the template?
The Datamapper extracts a XML field, let’s call it “Corpus” and place it inside the datamapper field “Corpus” without any manipulation. The data is correct from the source.
Corpus = "a <br/> b <br/> c"
Later in the Template I place down the field content as
<p>
{{ Corpus }}
</p>
And the rendered output is without the new line.
If in the source I enter < br/ >
the rendered text literally shows the <br/>
string
I am fiddling with other characters with no success.