Skip to content

Commit

Permalink
Fixed it, again (and tested it)
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed Aug 26, 2011
1 parent 125c478 commit 994e1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nodepie.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ NodePie.HTMLEntities = {
**/ **/
NodePie._decodeHTMLEntities = function(text){ NodePie._decodeHTMLEntities = function(text){
return text.replace(/&(.+?);/g, function(str, ent){ return text.replace(/&(.+?);/g, function(str, ent){
return String.fromCharCode( ent[0]!='#' ? entityToCode[ent] : ent[1]=='x' ? parseInt(ent.substr(2),16): parseInt(ent.substr(1)) )} return String.fromCharCode( ent[0]!='#' ? NodePie.HTMLEntities[ent] : ent[1]=='x' ? parseInt(ent.substr(2),16): parseInt(ent.substr(1)) )}
); );
}; };


Expand Down

0 comments on commit 994e1fa

Please sign in to comment.