mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 07:26:04 +08:00
7 lines
205 B
JavaScript
7 lines
205 B
JavaScript
import { escapeExpression } from "discourse/lib/utilities";
|
|
import { htmlHelper } from "discourse-common/lib/helpers";
|
|
|
|
export default htmlHelper((str) =>
|
|
escapeExpression(str).replace(/\n/g, "<br>")
|
|
);
|