remove content of <script> elements using Sanitize

Ryan Grove’s Sanitize is a fast and easy to use html scrubber. Here’s my current way to remove not only the <script>element, which is handled by Sanitize, but also all of it’s children. Please let me know, if there is a better way to do it.

UPDATE: rgrove refactored this a teeny bit. thanks!

1 month ago with .