We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55f892a commit 9c5f0fcCopy full SHA for 9c5f0fc
tests/ParserTest.php
@@ -223,4 +223,14 @@ public function testAddParser()
223
'<a href="www.yourlinkhere.com">Text to be displayed</a>.'
224
);
225
}
226
+
227
+ public function testEdgeCases()
228
+ {
229
+ $bbCode = new BBCode();
230
231
+ $this->assertEquals(
232
+ $bbCode->convertFromHtml('This<strong> </strong><a href="http://genert.org"><strong>is</strong> <i><b>test</b><strong></strong><strong</i>><<u>/stro</u>ng></a>'),
233
+ 'This[b] [/b][url=http://genert.org][b]is[/b] [i]<b>test</b><strong></strong><strong[/i]><[u]/stro[/u]ng>[/url]'
234
+ );
235
+ }
236
0 commit comments