Commit 5ac6da3
fix: replace DOMParser HTML stripping with regex to satisfy CodeQL
DOMParser.parseFromString() is safe (no script execution) but CodeQL
still flags it as DOM text reinterpreted as HTML. Switch to regex-based
tag stripping with entity decoding to avoid the false positive.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent d2480db commit 5ac6da3
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
186 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
187 | 191 | | |
188 | 192 | | |
189 | 193 | | |
| |||
0 commit comments