Authored by 王水玲

xss

... ... @@ -284,7 +284,7 @@ function updateLoginInfo(data) {
if (data.curLevel * 1 === 3) {
data.vip3 = true;
}
console.log(cleanHtml)
data.profileName = cleanHtml.htmlEncode(data.profileName);
$tool.find('.simple-user-center').html(centerFn(data));
}
... ...
... ... @@ -24,7 +24,6 @@ exports.htmlDecode = function(txt) {
};
exports.htmlEncode = function(str) {
console.log(str)
str = str || '';
return str.replace(re, function(s) {
switch (s) {
... ...