@optimiser/common 1.0.397 → 1.0.398
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/lib/utility.js +6 -1
- package/package.json +1 -1
package/dist/lib/utility.js
CHANGED
|
@@ -4761,7 +4761,12 @@ function IsAnotherObjectField(pageData, fieldName) {
|
|
|
4761
4761
|
return false;
|
|
4762
4762
|
}
|
|
4763
4763
|
var CustomSanitizeHtml = function (dirtyHtml) {
|
|
4764
|
-
var sanitizeHtmlContent = (0, sanitize_html_1.default)(dirtyHtml
|
|
4764
|
+
var sanitizeHtmlContent = (0, sanitize_html_1.default)(dirtyHtml, {
|
|
4765
|
+
allowedTags: sanitize_html_1.default.defaults.allowedTags,
|
|
4766
|
+
allowedAttributes: {
|
|
4767
|
+
'*': ['class'], // Allow 'class' attribute on all tags
|
|
4768
|
+
} // QPC-9587 sanitized html allowed class attribute
|
|
4769
|
+
});
|
|
4765
4770
|
return sanitizeHtmlContent.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
|
|
4766
4771
|
};
|
|
4767
4772
|
/*
|