@matechat/ng 20.2.1 → 20.2.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.
- package/fesm2022/matechat-ng.mjs +0 -7
- package/fesm2022/matechat-ng.mjs.map +1 -1
- package/index.d.ts +0 -1
- package/package.json +1 -1
package/fesm2022/matechat-ng.mjs
CHANGED
|
@@ -2382,12 +2382,6 @@ class MDCardService {
|
|
|
2382
2382
|
this.xssWhiteList['th'] = ['style'];
|
|
2383
2383
|
this.xssWhiteList['td'] = ['style'];
|
|
2384
2384
|
}
|
|
2385
|
-
onIgnoreTagAttr(tag, name, value, isWhiteAttr) {
|
|
2386
|
-
if (!isWhiteAttr && (name === 'id' || (tag === 'span' && name === 'style'))) {
|
|
2387
|
-
return name + '=' + value;
|
|
2388
|
-
}
|
|
2389
|
-
return undefined;
|
|
2390
|
-
}
|
|
2391
2385
|
getXssWhiteList() {
|
|
2392
2386
|
return this.xssWhiteList;
|
|
2393
2387
|
}
|
|
@@ -2417,7 +2411,6 @@ class MDCardService {
|
|
|
2417
2411
|
filterHtml(html) {
|
|
2418
2412
|
return filterXSS(html, {
|
|
2419
2413
|
whiteList: this.xssWhiteList,
|
|
2420
|
-
onIgnoreTagAttr: this.onIgnoreTagAttr,
|
|
2421
2414
|
css: {
|
|
2422
2415
|
whiteList: Object.assign({}, this.cssWhiteList, {
|
|
2423
2416
|
top: true,
|