PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_BBCodeParser » Bug #1201

[list] output adding extra <li></li>

Details

Submitted2004-04-14 03:22 UTC
Fromwebluke at webluke dot net
Assignedquipo
StatusClosed
PackageHTML_BBCodeParser
PHP Version4.3.3
OSLinux
Roadmaps(Not assigned)

Comments

[2004-04-14 03:22 UTC] webluke at webluke dot net

Description:
------------
When using [list] its adding extra "<li></li>" to the end of a list. Lists don't matter if ordered or unordered.

Reproduce code:
---------------
$str = "[list][*]bla bla[/list]";
$str = HTML_BBCodeParser::staticQparse($str);
echo $str;

Expected result:
----------------
<ul><li>bla bla</li></ul>

Actual result:
--------------
<ul><li>bla bla</li></ul><li></li>

[2004-10-14 15:59 UTC] stoyan at videotron dot ca

Note that this happens only when you're not ending the list item with a \n

Those work OK:

[list][*]bla bla
[/list]

or

[list]
[*]bla bla
[/list]