Commit 15084c5
fix: bind empty message string as plain text to avoid xss
BREAKING CHANGE: `emptyMessage` is no longer interpreted as HTML to prevent XSS attacks.
Use content projection for displaying an HTML empty content message:
```
<ngx-datatable>
<div empty-content>
My rich <i>html</i> content.
</div>
</ngx-datatable>
```1 parent 1f49101 commit 15084c5
File tree
1 file changed
+3
-5
lines changed- projects/ngx-datatable/src/lib/components
1 file changed
+3
-5
lines changedLines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
| |||
0 commit comments