Hi i am looking for any good javascript anti-xss libraries that i can use in my web application? I've done quite a bit of googling but haven't been able to find anything that would work..
In multiple cases i use user input for javascript code and jquery ajax requests, here's an example
$.ajax({url: "example.php?a="+userinput1+"&b="+userinput2, success: function(result){
//blah blah
}});
I am just wondering if there are any javascript anti-xss libraries i can use for easy xss prevention, idk but maybe something like this?
$.ajax({url: "example.php?a="+antiXSS.CleanInput(userinput1)+"&b="+antiXSS.CleanInput(userinput2), success: function(result){
//blah blah
}});
Thanks for reading, any help will be appreciated.
Aucun commentaire:
Enregistrer un commentaire