Jacky Zhao
2025-03-24 fe2e16d937e2b57fb2bb1d10dea47db7256a4a49
quartz/util/escape.ts
@@ -6,3 +6,12 @@
    .replaceAll('"', """)
    .replaceAll("'", "'")
}
export const unescapeHTML = (html: string) => {
  return html
    .replaceAll("&", "&")
    .replaceAll("&lt;", "<")
    .replaceAll("&gt;", ">")
    .replaceAll("&quot;", '"')
    .replaceAll("&#039;", "'")
}