Quote:
Originally Posted by warrimoo
Yes, a regex like <script.*?</script> with dot all on seemed to find most entries in the editor and similar for noscript tags. For some reason a few of the script> tag entries weren't matched and were still present when I checked later.
Maybe I'm over-worrying about this as a vector for attack and should stop thinking of needing virus prevention at the point of adding a book. I can just run a 'scan' occasionally.
|
For your example, you probably need:
Code:
<noscript.*?<noscript>
But, a more general would be:
Code:
<((?:java|no)?script).*?<\/\1>
That should get them all. But, it won't handle any self-closed tags. Or any mismatched tags.