redwhiteandblue |
11-24-2009 11:04 AM |
Quote:
Originally Posted by cyco_cc
(Post 16580883)
Edit: When is your regex breaking? The /<!--(.|\s)*?-->/ one?
|
Don't know, on most pages it happily strips out comments but on some it just returns null and I haven't figured out what the difference is with those pages yet.
EDIT just spotted this comment in the PHP user manual:
"As a pertinent note, there's an issue with this function where parsing any string longer than 94326 characters long will silently return null. So be careful where you use it at. "
Could be it.
|