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