gd-sprest-bs 10.8.8 → 10.9.0

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.
@@ -210,12 +210,12 @@ var renderDisplay = function (fieldName, props) {
210
210
  }
211
211
  }
212
212
  // Else, detect xml
213
- else if (/</g.test(html)) {
213
+ else if (/<|>|&|"/i.test(html)) {
214
214
  // Update the value
215
- control.value = html.replace(/&lt;/g, '<')
216
- .replace(/&gt;/g, '>')
217
- .replace(/&amp;/g, '&')
218
- .replace(/&quot;/g, '"');
215
+ control.value = html.replace(/&lt;/ig, '<')
216
+ .replace(/&gt;/ig, '>')
217
+ .replace(/&amp;/ig, '&')
218
+ .replace(/&quot;/ig, '"');
219
219
  }
220
220
  // Return the control
221
221
  return control;