mirror of https://github.com/logos-co/roadmap.git
9 lines
216 B
TypeScript
9 lines
216 B
TypeScript
export const escapeHTML = (unsafe: string) => {
|
|||
return unsafe
|
|||
.replaceAll("&", "&")
|
|||
.replaceAll("<", "<")
|
|||
.replaceAll(">", ">")
|
|||
.replaceAll('"', """)
|
|||
.replaceAll("'", "'")
|
|||
}
|