@editora/core 1.0.17 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CodePlugin.native-BH-K4xmW.mjs → CodePlugin.native-BcVqm5MS.mjs} +64 -65
- package/dist/{CodePlugin.native-hNgfXlfS.mjs → CodePlugin.native-Rgxx2Igx.mjs} +2708 -1225
- package/dist/{DocumentManagerPlugin.native-iFip6s4Q.mjs → DocumentManagerPlugin.native-B8K-Oqom.mjs} +12 -11
- package/dist/{PreviewPlugin.native-CiR51jql.mjs → PreviewPlugin.native-Dyht8mGi.mjs} +48 -51
- package/dist/{TablePlugin.native-BjIxYZ2X.mjs → TablePlugin.native-C1YZ372P.mjs} +156 -147
- package/dist/TemplatePlugin.native-BDV2eik2.mjs +628 -0
- package/dist/{documentManager-BcBIv5P-.mjs → documentManager-BWK_-KJp.mjs} +524 -526
- package/dist/editora.min.js +17 -17
- package/dist/editora.umd.js +22 -22
- package/dist/index-CclXYzUB.js +12 -0
- package/dist/{index-XsYC_KdJ.mjs → index-DeUjxpKd.mjs} +406 -386
- package/dist/index.cjs.js +10 -10
- package/dist/index.esm.js +78 -67
- package/dist/plugin-loader.js +4 -4
- package/dist/purify.es-BHa5gZB7.mjs +1481 -0
- package/dist/sanitizeHtml-DA0ajC6k.mjs +17 -0
- package/dist/webcomponent-core.js +376 -362
- package/dist/webcomponent-core.min.js +91 -89
- package/dist/webcomponent.cjs.js +1 -1
- package/dist/webcomponent.esm.js +2 -2
- package/dist/webcomponent.js +382 -368
- package/dist/webcomponent.min.js +968 -967
- package/index.d.ts +9 -0
- package/package.json +1 -1
- package/dist/TemplatePlugin.native-D6n5RUnC.mjs +0 -1176
- package/dist/index-_eKRBZPq.js +0 -12
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { p as e } from "./purify.es-BHa5gZB7.mjs";
|
|
2
|
+
function n(t) {
|
|
3
|
+
return t ? e.sanitize(t, {
|
|
4
|
+
USE_PROFILES: { html: !0 },
|
|
5
|
+
// <style> can restyle or exfiltrate through CSS; <form> and friends have no place in document content.
|
|
6
|
+
FORBID_TAGS: ["style", "form", "input", "button", "textarea", "select", "option", "base", "meta", "link"],
|
|
7
|
+
ADD_ATTR: ["target"]
|
|
8
|
+
}) : "";
|
|
9
|
+
}
|
|
10
|
+
function a(t) {
|
|
11
|
+
return new DOMParser().parseFromString(`<body>${t}</body>`, "text/html").body;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
a as p,
|
|
15
|
+
n as s
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=sanitizeHtml-DA0ajC6k.mjs.map
|