UNPKG

@anoki/fse-ui

Version:

FSE UI components library

23 lines (22 loc) 590 B
import r from "./index.es514.js"; import t from "./index.es515.js"; const i = (a, e) => typeof window > "u" ? t(a, { allowedTags: t.defaults.allowedTags.concat([ "img", "h1", "h2", "span" ]), allowedAttributes: { ...t.defaults.allowedAttributes, "*": ["class", "style", ...(e == null ? void 0 : e.addAttributes) ?? []], a: ["href", "name", "target", "rel"], img: ["src", "alt", "title", "width", "height"] } }) : r.sanitize(a, { ADD_ATTR: e == null ? void 0 : e.addAttributes }); export { i as sanitize }; //# sourceMappingURL=index.es289.js.map