diff --git a/tests/Fusonic/OpenGraph/Test/ConsumerTest.php b/tests/Fusonic/OpenGraph/Test/ConsumerTest.php index daecb14..f8408e8 100644 --- a/tests/Fusonic/OpenGraph/Test/ConsumerTest.php +++ b/tests/Fusonic/OpenGraph/Test/ConsumerTest.php @@ -324,4 +324,22 @@ public function testCrawlHtmlAudioExceptionDebugOn() $res = $consumer->loadHtml($content); } + + public function testLoadHtmlSpecialCharacters() + { + $content = << + + + + + +LONG; + + $consumer = new Consumer(); + + $res = $consumer->loadHtml($content); + + $this->assertEquals("Apples & Bananas - just \"Fruits\"", $res->title); + } }