From 63a502782449994fd59f108d6dd38adcae5db9d4 Mon Sep 17 00:00:00 2001 From: Matt Farina Date: Sun, 8 Mar 2015 13:39:01 -0400 Subject: Closes #78: Fixes bug where unmatched entity like string drops everything after &. --- test/HTML5/Html5Test.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/HTML5/Html5Test.php') diff --git a/test/HTML5/Html5Test.php b/test/HTML5/Html5Test.php index a1a6c9c..cce58b7 100644 --- a/test/HTML5/Html5Test.php +++ b/test/HTML5/Html5Test.php @@ -376,6 +376,9 @@ class Html5Test extends TestCase $res = $this->cycleFragment('Apples & bananas.'); $this->assertRegExp('|Apples & bananas.|', $res); + + $res = $this->cycleFragment('

R&D

'); + $this->assertRegExp('|R&D|', $res); } public function testComment() -- cgit v1.2.3