openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
8 lines (7 loc) • 331 B
JavaScript
//#region src/shared/html-escape.ts
/** Escapes text for safe insertion into HTML text and quoted attribute values. */
function escapeHtml(value) {
return value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'");
}
//#endregion
export { escapeHtml as t };