We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f78f0d commit f486cd6Copy full SHA for f486cd6
unescapeHTML.js
@@ -2,7 +2,7 @@ var makeString = require('./helper/makeString');
2
var htmlEntities = require('./helper/htmlEntities');
3
4
module.exports = function unescapeHTML(str) {
5
- return makeString(str).replace(/\&([^;]+);/g, function(entity, entityCode) {
+ return makeString(str).replace(/\&([^;]{1,10});/g, function(entity, entityCode) {
6
var match;
7
8
if (entityCode in htmlEntities) {
0 commit comments