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