I'm having problems with the bb parser. I am coding. Or, well, not with the parser itself, but with nl2br changing it.
The row from the database is as follows:
text text text
[code] code of the code code [/ code]
text text text
Now nl2br puts one br / after the first "text text text", and then another one below it, so there are two line breaks before the [code] tag (which is actually correct, but not what I want).
Is it possible to limit the number of lines per line? I cannot find a solution simple enough.
Thanks guys.
source
share