mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 22:44:06 +01:00
This commit is contained in:
parent
fb72af192e
commit
54ca2d6226
12 changed files with 112 additions and 65 deletions
|
|
@ -1,4 +1,7 @@
|
|||
export const escapeHtml = (html: string) => {
|
||||
if (!html) {
|
||||
return html;
|
||||
}
|
||||
return html.replace(/&/g, "&").replace(/</g, "<");
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue