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
Post a Comment