diff options
author | Matt Farina <[email protected]> | 2015-03-08 13:39:01 -0400 |
---|---|---|
committer | Matt Farina <[email protected]> | 2015-03-08 13:39:01 -0400 |
commit | 63a502782449994fd59f108d6dd38adcae5db9d4 (patch) | |
tree | f883c6982ce9c91eeb82f3ef6ae85e4017686e04 /test | |
parent | 8dce780fb24ff7178ead7fcf88146ed069cacb8b (diff) |
Closes #78: Fixes bug where unmatched entity like string drops everything after &.
Diffstat (limited to 'test')
-rw-r--r-- | test/HTML5/Html5Test.php | 3 |
1 files changed, 3 insertions, 0 deletions
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('<a>Apples & bananas.</a>'); $this->assertRegExp('|Apples & bananas.|', $res); + + $res = $this->cycleFragment('<p>R&D</p>'); + $this->assertRegExp('|R&D|', $res); } public function testComment() |