Permalink
Browse files

Fixed it, again (and tested it)

  • Loading branch information...
1 parent 125c478 commit 994e1fa8ad42323123924d36bd06b138a5ab9783 @fb55 fb55 committed Aug 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/nodepie.js
View
@@ -108,7 +108,7 @@ NodePie.HTMLEntities = {
**/
NodePie._decodeHTMLEntities = function(text){
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)) )}
);
};

0 comments on commit 994e1fa

Please sign in to comment.