// src/utils/html.tsx
import { templateIdentity } from "./strings";
function escapeHtml(unsafe) {
return `${unsafe}`.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """).replace(/'/g, "'");
}
function html(strings, ...values) {
return templateIdentity(strings, ...values.map((v) => escapeHtml(`${v}`)));
}
export {
escapeHtml,
html
};
//# sourceMappingURL=html.js.map