@optimiser/common 1.0.432 → 1.0.433
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 +7 -4
- package/package.json +1 -1
package/dist/lib/utility.js
CHANGED
|
@@ -4824,10 +4824,13 @@ var CustomSanitizeHtml = function (dirtyHtml, uiDataType) {
|
|
|
4824
4824
|
try {
|
|
4825
4825
|
// Sanitize the HTML content
|
|
4826
4826
|
var sanitizedHtmlContent = (0, sanitize_html_1.default)(dirtyHtml, sanitizeOptions);
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4827
|
+
if (uiDataType === 'texteditor') {
|
|
4828
|
+
return sanitizedHtmlContent; //Return without replace code fixed QPC-11110 script data save
|
|
4829
|
+
}
|
|
4830
|
+
return sanitizedHtmlContent
|
|
4831
|
+
.replace(/&/g, '&')
|
|
4832
|
+
.replace(/</g, '<')
|
|
4833
|
+
.replace(/>/g, '>');
|
|
4831
4834
|
}
|
|
4832
4835
|
catch (error) {
|
|
4833
4836
|
console.error('Sanitization failed:', error);
|