I have a Meteor helper that looks like this:
"text":function(){
return "testtesttest <br> testtesttest";
}
But the <br>
is not working (no line break in displayed text), if I use \n
instead of <br>
, I get testtesttest<br>testtesttest
.
The usage of <pre>
is not what I'm looking for.
How can I make my helper return a String, that contains line breaks?
If you want to return text with html markup, you should use {{{ ... }}}.
So use {{{ test }}} instead of {{ test }} in your template.