@anoki/fse-ui
Version:
FSE UI components library
20 lines (19 loc) • 464 B
JavaScript
import e from "./index.es515.js";
const r = (a, t) => e(a, {
allowedTags: e.defaults.allowedTags.concat([
"img",
"h1",
"h2",
"span"
]),
allowedAttributes: {
...e.defaults.allowedAttributes,
"*": ["class", "style", ...(t == null ? void 0 : t.addAttributes) ?? []],
a: ["href", "name", "target", "rel"],
img: ["src", "alt", "title", "width", "height"]
}
});
export {
r as sanitize
};
//# sourceMappingURL=index.es288.js.map