mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
4 lines
193 B
JavaScript
4 lines
193 B
JavaScript
import { htmlHelper } from 'discourse/lib/helpers';
|
|
import { escapeExpression } from 'discourse/lib/utilities';
|
|
|
|
export default htmlHelper(str => escapeExpression(str).replace(/\n/g, "<br>"));
|