var replaceHtmlCode = function(str) {
return str.replace(/%(\d\d)/g, function(text, code) {
return String.fromCharCode(parseInt(code, 16));
var replaceHtmlCode = function(str) {
return str.replace(/%(\d\d)/g, function(text, code) {
return String.fromCharCode(parseInt(code, 16));