node.js - How to unescape ` ` in Node -


i have screen scrapping code this...

request(options, function(error, response, html){   console.log("request complete");   if(!error){     var $ = cheerio.load(html);     var x = $('.updatebodytest');     console.log(x.html());     var y = x.find('th');     var results = [];     y.each(function(){       console.log(querystring.unescape($(this).html()));       results.push($(this).html());     });   } })  

the problem getting output looks my entity in console. how unescape this? other html encoding?

those html entities. built-in querystring module not support of course, there modules on npm such he can decode such entities.


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -