mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 23:43:41 +08:00
5 lines
200 B
JavaScript
5 lines
200 B
JavaScript
import { htmlHelper } from 'discourse-common/lib/helpers';
|
|
import { escapeExpression } from 'discourse/lib/utilities';
|
|
|
|
export default htmlHelper(str => escapeExpression(str).replace(/\n/g, "<br>"));
|