export function nl2br(text: string) { return text.replace(/(?:\r\n|\r|\n)/g, "
"); }