mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 06:54:08 +01:00
This commit is contained in:
parent
06512f994b
commit
2984cb7488
3 changed files with 16 additions and 11 deletions
|
|
@ -9,3 +9,8 @@ export const escapeGreat = (html: string) => {
|
|||
export const escapeAttr = (html: string) => {
|
||||
return html.replace(/"/g, """).replace(/'/g, "'");
|
||||
};
|
||||
|
||||
export const escapeAriaLabel = (html: string) => {
|
||||
return html.replace(/"/g, """).replace(/'/g, "'")
|
||||
.replace(/</g, "&lt;");
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue