in reply to Regex: Strip <script> tags?
I use the following in a piece of code here:
# Strip <script [..]>..</script> and <style>..</style> $content =~ s!<(s(?:cript|tyle))[^>]*>.*?</\1>!!gis;
backtracking++
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex: Strip <script> tags?
by clinton (Priest) on Sep 02, 2007 at 14:49 UTC |