@capillarytech/cap-ui-utils 1.4.33 → 1.4.34
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/package.json
CHANGED
|
@@ -81,8 +81,11 @@ const sanitizeTemplateWithRegexp = (content) => {
|
|
|
81
81
|
`(?:<|<|&lt;|amp;lt;)\\s*(${tagsJoined})\\b[\\s\\S]*?(?:\/>|>|>|\/>|&gt;|amp;gt;|\/&gt;|\\Z)`,
|
|
82
82
|
"gi"
|
|
83
83
|
);
|
|
84
|
+
// regex to replace the ' (ascii html for apostrophe) to the apostrophe for ckeditor content
|
|
85
|
+
const apostropheRegex = new RegExp(''', 'gi');
|
|
84
86
|
|
|
85
87
|
content = content
|
|
88
|
+
.replaceAll(apostropheRegex, '\'')
|
|
86
89
|
.replace(hexCodeRegex, "")
|
|
87
90
|
.replace(encodedScriptTagRegex, "")
|
|
88
91
|
.replace(fullTagRegex, "")
|