diff --git a/src/Content/Text/HTML.php b/src/Content/Text/HTML.php index c1bcb0b5b..89a680501 100644 --- a/src/Content/Text/HTML.php +++ b/src/Content/Text/HTML.php @@ -283,7 +283,7 @@ class HTML self::tagToBBCode($doc, 'ul', [], "[ul]", "\n[/ul]"); self::tagToBBCode($doc, 'ol', [], "[ol]", "\n[/ol]"); - self::tagToBBCode($doc, 'li', [], "\n[*]", ""); + self::tagToBBCode($doc, 'li', [], "\n[li]", "[/li]"); self::tagToBBCode($doc, 'hr', [], "[hr]", ""); diff --git a/tests/src/Content/Text/HTMLTest.php b/tests/src/Content/Text/HTMLTest.php index dc55ad0f0..c94f180f8 100644 --- a/tests/src/Content/Text/HTMLTest.php +++ b/tests/src/Content/Text/HTMLTest.php @@ -91,18 +91,18 @@ its surprisingly good", 'bug-12842-ul-new-lines' => [ 'expectedBBCode' => 'This is: [ul] -[*]some -[*]amazing -[*]list +[li]some[/li] +[li]amazing[/li] +[li]list[/li] [/ul]', 'html'=> '
This is:
This is: