Merge pull request #2086 from bnchdrff/cleanse-npm-values

escape rendered npm package info
This commit is contained in:
John McLear 2014-02-17 16:51:07 +00:00
commit ca8dce1840

View file

@ -81,7 +81,7 @@ $(document).ready(function () {
if(attr == "name"){ // Hack to rewrite URLS into name
row.find(".name").html("<a target='_blank' title='Plugin details' href='https://npmjs.org/package/"+plugin['name']+"'>"+plugin['name'].substr(3)+"</a>"); // remove 'ep_'
}else{
row.find("." + attr).html(plugin[attr]);
row.find("." + attr).text(plugin[attr]);
}
}
row.find(".version").html( plugin.version );