PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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]