summaryrefslogtreecommitdiff
path: root/src/HTML5
diff options
context:
space:
mode:
authorAsmir Mustafic <[email protected]>2017-07-26 17:10:45 +0300
committerGitHub <[email protected]>2017-07-26 17:10:45 +0300
commitdf71b47d1755e41e6ad29255caba7e13e7413139 (patch)
tree388ecee504f964a68a93ebd01908a6f95d4396a9 /src/HTML5
parent5f2ef1d0060f652833ef251627c6c7f7c23e2728 (diff)
parent2c3485139131607f43db07d989ae5a600f8291ab (diff)
Merge pull request #132 from Masterminds/i-131
Allow entity references containing numbers
Diffstat (limited to 'src/HTML5')
-rw-r--r--src/HTML5/Parser/Tokenizer.php2
1 files changed, 1 insertions, 1 deletions
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