Vanessa 2023-09-09 14:54:05 +08:00
parent ff45ebcdaf
commit 2659052bb9
40 changed files with 164 additions and 151 deletions

View file

@ -12,5 +12,5 @@ export const escapeAttr = (html: string) => {
export const escapeAriaLabel = (html: string) => {
return html.replace(/"/g, """).replace(/'/g, "'")
.replace(/</g, "&amp;lt;");
.replace(/</g, "&amp;lt;").replace(/&lt;/g, "&amp;lt;");
};