@syncfusion/ej2-lists 22.1.34 → 22.2.5

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.
@@ -929,7 +929,7 @@ var ListBase;
929
929
  attrs: (ariaAttributes.itemText !== '' ? { role: ariaAttributes.itemText } : {})
930
930
  });
931
931
  if (options && options.enableHtmlSanitizer) {
932
- element.innerText = text;
932
+ element.innerText = SanitizeHtmlHelper.sanitize(text);
933
933
  }
934
934
  else {
935
935
  element.innerHTML = text;
@@ -1293,11 +1293,15 @@ let ListView = class ListView extends Component {
1293
1293
  // Support Component Functions
1294
1294
  header(text, showBack, prop) {
1295
1295
  if (this.headerEle === undefined && this.showHeader) {
1296
+ this.headerEle = this.createElement('div', { className: classNames.header });
1297
+ const innerHeaderEle = this.createElement('span', { className: classNames.headerText });
1296
1298
  if (this.enableHtmlSanitizer) {
1297
1299
  this.setProperties({ headerTitle: SanitizeHtmlHelper.sanitize(this.headerTitle) }, true);
1300
+ innerHeaderEle.innerText = this.headerTitle;
1301
+ }
1302
+ else {
1303
+ innerHeaderEle.innerHTML = this.headerTitle;
1298
1304
  }
1299
- this.headerEle = this.createElement('div', { className: classNames.header });
1300
- const innerHeaderEle = this.createElement('span', { className: classNames.headerText, innerHTML: this.headerTitle });
1301
1305
  const textEle = this.createElement('div', { className: classNames.text, innerHTML: innerHeaderEle.outerHTML });
1302
1306
  const hedBackButton = this.createElement('div', {
1303
1307
  className: classNames.icon + ' ' + classNames.backIcon + ' ' + classNames.backButton,