import { t as e } from "./purify.es-Dsqc2y0I.js";
//#region src/utils/sanitize.ts
function t(e) {
	return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
}
function n(t, n) {
	let r = n?.allowSvg === !0 ? { USE_PROFILES: {
		svg: !0,
		html: !0
	} } : void 0;
	return e.sanitize(t, r);
}
function r(e, t, r) {
	e.innerHTML = n(t, r);
}
function i(e, t) {
	r(e, t, { allowSvg: !0 });
}
//#endregion
export { i, n, r, t };

//# sourceMappingURL=sanitize-CDxuPfMB.js.map