Hi
I am trying to make a regex that will just look for and remove script tags(its the only tag I wanted removed since I think it is the only one that can cause damage).
Anyways I know there are so many way to write a script tag that is still valid. Will this catch them?
<\s*script\s*>.*?<\s*\/script\s*>
Edit
or would it better to try to change them all to safe tags? you know where it does html encoding on the tags? But it could only be on script tags since I still want to allow other html tags like <b>
and stuff.