@optimiser/common 1.0.430 → 1.0.432
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 +5 -5
- package/package.json +1 -1
package/dist/lib/utility.js
CHANGED
|
@@ -4824,11 +4824,10 @@ 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
|
-
|
|
4831
|
-
.replace(/>/g, '>');
|
|
4827
|
+
return sanitizedHtmlContent; //Replace code commented fixed QPC-11110 script data save
|
|
4828
|
+
// .replace(/&/g, '&')
|
|
4829
|
+
// .replace(/</g, '<')
|
|
4830
|
+
// .replace(/>/g, '>');
|
|
4832
4831
|
}
|
|
4833
4832
|
catch (error) {
|
|
4834
4833
|
console.error('Sanitization failed:', error);
|
|
@@ -4921,6 +4920,7 @@ function ValidateUserInput(options) {
|
|
|
4921
4920
|
fieldData = inputFields[fieldName];
|
|
4922
4921
|
if (pageField.IsDisplayOnly) {
|
|
4923
4922
|
delete inputFields[pageField.Name];
|
|
4923
|
+
return [2 /*return*/, "continue"];
|
|
4924
4924
|
}
|
|
4925
4925
|
field = schemaFields.find(function (x) { return x.Name == fieldName; });
|
|
4926
4926
|
if (!field) return [3 /*break*/, 60];
|