Skip to content

Open-source document signature platform. Not affiliated with DocuSign.

TypeScript
219 B
Raw Blame
export function escapeHtml(value: string): string {
  return value
    .replaceAll("&", "&")
    .replaceAll("<", "&lt;")
    .replaceAll(">", "&gt;")
    .replaceAll('"', "&quot;")
    .replaceAll("'", "&#39;");
}