Skip to content

Commit

Permalink
Tokenizer.php: Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaofengli committed Dec 8, 2014
1 parent b726aeb commit d505c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HTML5/Parser/Tokenizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ protected function rcdata()
$sequence = '</' . $this->untilTag . '>';
$txt = '';
$tok = $this->scanner->current();
$caseSensitive = Elements::isHtml5Element($this->untilTag)?false:true;
$caseSensitive = !Elements::isHtml5Element($this->untilTag);
while ($tok !== false && ! ($tok == '<' && ($this->sequenceMatches($sequence, $caseSensitive)))) {
if ($tok == '&') {
$txt .= $this->decodeCharacterReference();
Expand Down

0 comments on commit d505c3f

Please sign in to comment.