mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 11:15:03 +08:00
4 lines
153 B
JavaScript
4 lines
153 B
JavaScript
import { htmlHelper } from 'discourse/lib/helpers';
|
|
|
|
export default htmlHelper(str => Discourse.Utilities.escapeExpression(str).replace(/\n/g, "<br>"));
|