dependabot[bot]
2024-03-04 a13d8e84b250a0e0bcb5d34e52f161e796e3a2fb
1
2
3
4
5
6
7
8
export const escapeHTML = (unsafe: string) => {
  return unsafe
    .replaceAll("&", "&")
    .replaceAll("<", "&lt;")
    .replaceAll(">", "&gt;")
    .replaceAll('"', "&quot;")
    .replaceAll("'", "&#039;")
}