mobilizon/js/src/utils/html.ts

4 lines
98 B
TypeScript
Raw Normal View History

export function nl2br(text: string): string {
return text.replace(/(?:\r\n|\r|\n)/g, "<br>");
2019-04-26 13:22:16 +00:00
}