var decoded = $("<div/>").html(encodedStr).text(); 转载于:https://www.cnblogs.com/jinzhao/articles/2048835.html