Remove every <script>…</script> block (and their contents) from an HTML
string using a case-insensitive linear scan. Defends against XSS payloads
smuggled into AI-generated article fragments before the markdown is
rendered into the final article HTML.
Remove every
<script>…</script>block (and their contents) from an HTML string using a case-insensitive linear scan. Defends against XSS payloads smuggled into AI-generated article fragments before the markdown is rendered into the final article HTML.