Search code examples
meteormeteor-blaze

How to send “<br>” element to client from server or how to return innerHTML in helper in meteor ?


How to send “<br>” element to client from server in meteor?

I want to send text with escape new line character to client from server.

I tried with "<br>" element directly to client but it is taking as text rather than element.

Any help appreciable.


Solution

  • To override HTML escape in Handlebars, use the triple slash with your text

    <span> {{{yourvariable}}} </span>