Remove all <script>…</script> blocks from an HTML string, replacing each
with a single space.
Uses iterative index-based scanning instead of a single-pass regex so that
CodeQL does not flag the pattern as an insecure HTML tag filter
(js/bad-tag-filter).
Remove all
<script>…</script>blocks from an HTML string, replacing each with a single space.Uses iterative index-based scanning instead of a single-pass regex so that CodeQL does not flag the pattern as an insecure HTML tag filter (
js/bad-tag-filter).