Skip to content

Enterprise agent platform for building, deploying, and operating AI teammates.

259 B
Raw Blame
/** Escape raw text for both HTML text and quoted attribute values. */
export function escapeHtml(value: string): string {
  return value.replace(/&/g, "&amp;").replace(/</g, "&lt;")
    .replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;")
}