dashboard
repositories
filestore
activity
search
login
scapegoat
/
Docs2
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
Fix Non-English Anchor Popover Positioning Issue and Update Type Hint (#1252)
Cao Mingjun
2024-07-08
4eeacb7fbf0059f47317d813a9077437c75ce2f6
[scapegoat/Docs2.git]
/
quartz
/
util
/
escape.ts
1
2
3
4
5
6
7
8
export const escapeHTML = (unsafe: string) => {
return unsafe
.replaceAll("&", "&")
.replaceAll("<", "<")
.replaceAll(">", ">")
.replaceAll('"', """)
.replaceAll("'", "'")
}