refac: escapeHtml, nl2br, TemplateEngine 분리
This commit is contained in:
1 parent
3b9884160b
commit
5a0a8bedc1
9 files changed
+76
-82
No files matched your search
@@ -0,0 +1,4 @@
|
||||
|
||||
export function nl2br(text: string): string {
|
||||
return text.replace(/\n/g, "<br>");
|
||||
}
|
||||
Reference in new issue
Block a user