From 0f1c4f044092a5866431bc664860ba8ccf2a33e1 Mon Sep 17 00:00:00 2001 From: Asmir Mustafic Date: Wed, 26 Jul 2017 16:33:02 +0300 Subject: Fix https://github.com/Masterminds/html5-php/issues/131 --- src/HTML5/Parser/Tokenizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/HTML5') diff --git a/src/HTML5/Parser/Tokenizer.php b/src/HTML5/Parser/Tokenizer.php index 02b2aff..45774b2 100644 --- a/src/HTML5/Parser/Tokenizer.php +++ b/src/HTML5/Parser/Tokenizer.php @@ -1071,7 +1071,7 @@ class Tokenizer else { // Attempt to consume a string up to a ';'. // [a-zA-Z0-9]+; - $cname = $this->scanner->getAsciiAlpha(); + $cname = $this->scanner->getAsciiAlphaNum(); $entity = CharacterReference::lookupName($cname); // When no entity is found provide the name of the unmatched string -- cgit v1.2.3