mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-05 20:30:15 +01:00
This commit is contained in:
parent
fe6e88ea45
commit
bbd1333f93
6 changed files with 16 additions and 12 deletions
|
|
@ -2,6 +2,10 @@ export const escapeHtml = (html: string) => {
|
|||
return html.replace(/&/g, "&").replace(/</g, "<");
|
||||
};
|
||||
|
||||
export const escapeGreat = (html: string) => {
|
||||
return html.replace(/</g, "<");
|
||||
};
|
||||
|
||||
export const escapeAttr = (html: string) => {
|
||||
return html.replace(/"/g, """).replace(/'/g, "'");
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue