diff --git a/lib/common.js b/lib/common.js index 605a3bf7..ccc2a77a 100644 --- a/lib/common.js +++ b/lib/common.js @@ -7,7 +7,7 @@ var C_BACKSLASH = 92; var decodeHTML = require('entities').decodeHTML; -var ENTITY = "&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});"; +var ENTITY = "&(?:#x[a-f0-9]{1,6}|#[0-9]{1,7}|[a-z][a-z0-9]{1,31});"; var TAGNAME = '[A-Za-z][A-Za-z0-9-]*'; var ATTRIBUTENAME = '[a-zA-Z_:][a-zA-Z0-9:._-]*';