Well, let not everyone be naive here:
<script> "<!-- </script> -->"; document.write("hello world"); </script> <script> "<!-- </script> -->"; document.write("hello world"); </script> (you should pass the filters suggested by regexadvice)
javascript filtering is a security-critical thing, which means you need to do this carefully and correctly, rather than quickly crack it.
source share