Home » HTML » HTML_BBCodeParser » Bug #1201
[list] output adding extra <li></li>
Details
| Submitted | 2004-04-14 03:22 UTC |
|---|---|
| From | webluke at webluke dot net |
| Assigned | quipo |
| Status | Closed |
| Package | HTML_BBCodeParser |
| PHP Version | 4.3.3 |
| OS | Linux |
| 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]