@optimiser/common 1.0.385 → 1.0.387

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.
@@ -4736,17 +4736,8 @@ function IsAnotherObjectField(pageData, fieldName) {
4736
4736
  return false;
4737
4737
  }
4738
4738
  var CustomSanitizeHtml = function (dirtyHtml) {
4739
- return (0, sanitize_html_1.default)(dirtyHtml, {
4740
- allowedTags: sanitize_html_1.default.defaults.allowedTags.concat(['body']), // Preserve <body> tag
4741
- allowedAttributes: {
4742
- '*': ['href', 'align', 'alt', 'center', 'bgcolor', 'src', 'title', 'width'],
4743
- },
4744
- allowedSchemes: ['http', 'https', 'mailto'], // Allow URLs with these schemes
4745
- textFilter: function (text) { return text; }, // Keep special characters like & intact
4746
- parser: {
4747
- decodeEntities: false, // Prevent converting & to &
4748
- },
4749
- });
4739
+ var sanitizeHtmlContent = (0, sanitize_html_1.default)(dirtyHtml);
4740
+ return sanitizeHtmlContent.replace(/&amp;/g, '&').replace(/&lt;/g, '<').replace(/&gt;/g, '>');
4750
4741
  };
4751
4742
  /*
4752
4743
  * Created by: Nirbhay as on 01-09-22
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimiser/common",
3
- "version": "1.0.385",
3
+ "version": "1.0.387",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {