I use the following in a piece of code here:
# Strip <script [..]>..</script> and <style>..</style> $content =~ s!<(s(?:cript|tyle))[^>]*>.*?</\1>!!gis;
backtracking++
In reply to Re: Regex: Strip <script> tags?
by hacker
in thread Regex: Strip <script> tags?
by Spidy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |