PDA

View Full Version : Problem with strip_quotes


x3sphere
01-22-2007, 03:27 AM
Hi, I use strip_quotes on my main site when I run text through the BBcode parser. However, the problem is that strip_quotes is leaving some extra line breaks.

Why it happens is that someone will do a [/QUOTE], press enter 2 times, then enter more text. So when it goes through the parser, the quote is gone, and you have two extra line breaks.

Anyone have a solution to remove these?

EDIT::

ok, figured out how to use preg_replace with regex to remove the line breaks.. got it working ;)

thx anyway all