mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-23 11:23:27 +08:00
6 lines
205 B
JavaScript
Vendored
6 lines
205 B
JavaScript
Vendored
import { escapeExpression } from "discourse/lib/utilities";
|
|
import { htmlHelper } from "discourse-common/lib/helpers";
|
|
|
|
export default htmlHelper((str) =>
|
|
escapeExpression(str).replace(/\n/g, "<br>")
|
|
);
|