Logged Out
Create an Account
Login:
Password:

Forgot your password?
BBCode Inserting <br>'s at the end of <li>'s


Back to the Tickets List

BBCode Inserting <br>'s at the end of <li>'s
Creator Nevir
Public or Private Public
Private tickets are only accessible to you and to DKPSystem.com staff
Public Tickets are visible to everyone)
Status Closed
Type Bug
Section of the Site Forum
Urgency (2 votes)
Rating (2 votes)
Description:
Your BBCode parser is inserting <br>'s after a </li> with a newline

here's a quick fix that you can stick in before you do a nl2br() call; I'm guessing:

str_replace("</li>\n", "</li>", $post)

Or a bit more correct, but slower:

preg_replace("/<\/li>\s*\n/", "</li>", $post)
Official DKPSystem.com Comments
No official comments yet

User-Submitted Comments
These posts are also available on the forum with more features. This page is intentional simplified

View this info on the forum
[You must be logged in to post comments]
6200 days ago
Chops Said:
Thanks for the heads up. I thought I had done that already, but I guess not.
[You must be logged in to reply]