I have a preg_replace code used for bbcode on my site.
When you create a list in the bbcode like so:
[list*]
[li]lalala[/li]
[li]lalala[/li]
[/list*]
(Minus the *'s)
It outputs it like so in html:
<ul>
<li>lalala</li><br/>
<li>lalala</li><br/>
</ul>
Any way to get around this?
It uses nl2br() to make line breaks from the bbcode to html display. Thanks!