I want code which can validate true
or false
, based on a condition.
If my textbox value contains any js injection,
example:
var str = "alert('text')"
how do I know if the str is a normal text or it really contains javascript code in it?
I want code which can validate true
or false
, based on a condition.
If my textbox value contains any js injection,
example:
var str = "alert('text')"
how do I know if the str is a normal text or it really contains javascript code in it?