2016-08-31 11:30:51 -04:00
|
|
|
import { htmlHelper } from "discourse-common/lib/helpers";
|
2016-06-14 14:31:51 -04:00
|
|
|
import { escapeExpression } from "discourse/lib/utilities";
|
2016-05-10 13:45:58 -04:00
|
|
|
|
2016-06-14 14:31:51 -04:00
|
|
|
export default htmlHelper((str) =>
|
|
|
|
escapeExpression(str).replace(/\n/g, "<br>")
|
|
|
|
);
|