Skip to content

Commit

Permalink
Fix the busted entity decoder. Fixes #10508 !strict.
Browse files Browse the repository at this point in the history
  • Loading branch information
ttrenka committed Mar 28, 2010
1 parent 0d2208e commit 8ec56ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gfx/VectorText.js
Expand Up @@ -71,13 +71,13 @@ dojo.require("dojox.html.metrics");
var r, tmp="";
while((r=this._entityRe.exec(str))!==null){
if(r[1].charAt(1)=="x"){
tmp+=String.fromCharCode(r[1].slice(2), 16);
tmp+=String.fromCharCode(parseInt(r[1].slice(2), 16));
}
else if(!isNaN(parseInt(r[1].slice(1),10))){
tmp+=String.fromCharCode(r[1].slice(1));
tmp+=String.fromCharCode(parseInt(r[1].slice(1), 10));
}
else {
tmp+=xmlEntityMap(r[1]);
tmp+=xmlEntityMap[r[1]];
}
}
return tmp; // String
Expand Down

0 comments on commit 8ec56ed

Please sign in to comment.