I have testing for XSS-injection.
The code contains eval function of javascript.
when if takes some javascript code evaluates the script .
I have very basic idea of regular expressions.
I have been searching for regular expression which might filter the contents and might not allow the javascript code inside eval function .
I need to validate the input in short before passing the parameter to eval function. Any help regarding this will be valuable .
Thanks in advance, Tazim.