Skip to content

Commit

Permalink
SVY-19882 When using a < in a field in a data-grid with a styleClassD…
Browse files Browse the repository at this point in the history
…ataprovider, everything afther the < is not displayed
  • Loading branch information
gboros committed Jan 9, 2025
1 parent e752e68 commit a06c8b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion aggrid/groupingtable/groupingtable.js
Original file line number Diff line number Diff line change
Expand Up @@ -5804,7 +5804,8 @@ angular.module('aggridGroupingtable', ['webSocketModule', 'servoy']).directive('
divContainer.appendChild(checkboxEl);
}
else {
divContainer.innerHTML = returnValueFormatted ? params.valueFormatted : value;
var textNode = document.createTextNode(returnValueFormatted ? params.valueFormatted : value);
divContainer.appendChild(textNode);
}

return divContainer;
Expand Down
3 changes: 2 additions & 1 deletion aggrid/projects/nggrids/src/datagrid/datagrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1998,7 +1998,8 @@ export class DataGrid extends NGGridDirective {
if(checkboxEl) {
divContainer.appendChild(checkboxEl);
} else {
divContainer.innerHTML = returnValueFormatted ? params.valueFormatted : value;
const textNode = this.doc.createTextNode(returnValueFormatted ? params.valueFormatted : value);
divContainer.appendChild(textNode);
}

return divContainer;
Expand Down

0 comments on commit a06c8b7

Please sign in to comment.