@optimiser/common 1.0.396 → 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.
@@ -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(/&amp;/g, '&').replace(/&lt;/g, '<').replace(/&gt;/g, '>');
4766
4771
  };
4767
4772
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimiser/common",
3
- "version": "1.0.396",
3
+ "version": "1.0.398",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {