@abp/ng.core 5.1.1 → 5.1.2
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/fesm2020/abp-ng.core.mjs
CHANGED
|
@@ -157,8 +157,13 @@ function interpolate(text, params) {
|
|
|
157
157
|
.replace(/\s+/g, ' ');
|
|
158
158
|
}
|
|
159
159
|
function escapeHtmlChars(value) {
|
|
160
|
-
return
|
|
161
|
-
value
|
|
160
|
+
return value && typeof value === 'string'
|
|
161
|
+
? value
|
|
162
|
+
.replace(/&/g, '&')
|
|
163
|
+
.replace(/</g, '<')
|
|
164
|
+
.replace(/>/g, '>')
|
|
165
|
+
.replace(/"/g, '"')
|
|
166
|
+
: value;
|
|
162
167
|
}
|
|
163
168
|
|
|
164
169
|
function noop() {
|