mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 18:17:29 -05:00
4 lines
157 B
Text
4 lines
157 B
Text
|
Em.Handlebars.helper('preserve-newlines', str => {
|
||
|
return new Handlebars.SafeString(Discourse.Utilities.escapeExpression(str).replace(/\n/g, "<br>"));
|
||
|
});
|