I have html entered by user that is put in an iframe. The purpose is to suppress all inline javascript in the html. Have thought about Regexp to remove all scripts, but it caught only <script> ... </script>, but no <txt onload='..javascript...
This is the regex: /<\s*script[^>]*>[^<]*<\s*\/\s*script\s*>/gi
How can I block all js in the entered html?
sanitizing. Check this question and answer stackoverflow.com/questions/23952684/…