#123 Improve Smarty tag noise stripper (possible fix included).

v1.0_(example)
open
nobody
None
1
2013-02-24
2013-02-24
Robert Cummings
No

Please change the following noise stripper:

$this->remove_noise("'(\{\w)(.*?)(\})'s", true);

To the following to safeguard stripping of actual content that just happens to be preceded by "Smarty"-ish looking code:

$this->remove_noise("'(\{\w)([^<>]*?)(\})'s", true);

I'm not familiar with Smarty syntax... but I'm counting on it not having <> characters in it. I could be wrong. Due to the smarty noise stripping a block of about 2k of HTML went missing during parsing :)

Thanks,
Rob.

Discussion