@oneblink/apps-react 7.3.0-beta.1 → 7.3.0-beta.2
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.
@@ -17,11 +17,5 @@ const sanitizeHtmlStandard = (html) => {
|
|
17
17
|
allowedAttributes,
|
18
18
|
});
|
19
19
|
};
|
20
|
-
export const sanitizeCustomCSS = (customCss) => {
|
21
|
-
return sanitizeHtml(customCss, {
|
22
|
-
allowedTags: [],
|
23
|
-
allowedAttributes: {},
|
24
|
-
});
|
25
|
-
};
|
26
20
|
export default sanitizeHtmlStandard;
|
27
21
|
//# sourceMappingURL=sanitize-html.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sanitize-html.js","sourceRoot":"","sources":["../../src/services/sanitize-html.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,eAAe,CAAA;AAExC,MAAM,WAAW,GAAG;IAClB,GAAG,YAAY,CAAC,QAAQ,CAAC,WAAW;IACpC,GAAG;IACH,MAAM;IACN,IAAI;IACJ,IAAI;IACJ,KAAK;CACN,CAAA;AAED,MAAM,iBAAiB,GAAG;IACxB,GAAG,YAAY,CAAC,QAAQ,CAAC,iBAAiB;IAC1C,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;CACxB,CAAA;AAED,MAAM,oBAAoB,GAAG,CAAC,IAAY,EAAE,EAAE;IAC5C,OAAO,YAAY,CAAC,IAAI,EAAE;QACxB,WAAW;QACX,iBAAiB;KAClB,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,
|
1
|
+
{"version":3,"file":"sanitize-html.js","sourceRoot":"","sources":["../../src/services/sanitize-html.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,eAAe,CAAA;AAExC,MAAM,WAAW,GAAG;IAClB,GAAG,YAAY,CAAC,QAAQ,CAAC,WAAW;IACpC,GAAG;IACH,MAAM;IACN,IAAI;IACJ,IAAI;IACJ,KAAK;CACN,CAAA;AAED,MAAM,iBAAiB,GAAG;IACxB,GAAG,YAAY,CAAC,QAAQ,CAAC,iBAAiB;IAC1C,GAAG,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;CACxB,CAAA;AAED,MAAM,oBAAoB,GAAG,CAAC,IAAY,EAAE,EAAE;IAC5C,OAAO,YAAY,CAAC,IAAI,EAAE;QACxB,WAAW;QACX,iBAAiB;KAClB,CAAC,CAAA;AACJ,CAAC,CAAA;AAED,eAAe,oBAAoB,CAAA","sourcesContent":["import sanitizeHtml from 'sanitize-html'\n\nconst allowedTags = [\n ...sanitizeHtml.defaults.allowedTags,\n 'u',\n 'span',\n 'h1',\n 'h2',\n 'img',\n]\n\nconst allowedAttributes = {\n ...sanitizeHtml.defaults.allowedAttributes,\n '*': ['style', 'class'],\n}\n\nconst sanitizeHtmlStandard = (html: string) => {\n return sanitizeHtml(html, {\n allowedTags,\n allowedAttributes,\n })\n}\n\nexport default sanitizeHtmlStandard\n"]}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@oneblink/apps-react",
|
3
3
|
"description": "Helper functions for OneBlink apps in ReactJS.",
|
4
|
-
"version": "7.3.0-beta.
|
4
|
+
"version": "7.3.0-beta.2",
|
5
5
|
"author": "OneBlink <developers@oneblink.io> (https://oneblink.io)",
|
6
6
|
"bugs": {
|
7
7
|
"url": "https://github.com/oneblink/apps-react/issues"
|