Need regex pattern for HTML Charcter validation using Javascript or Jquery

Posted by Bhavanib under jQuery on 12/20/2012 | Points: 10 | Views : 1854 | Status : [Member] | Replies : 0
Hi friends,

I need to validate text box should not allow only html special characres(<,>).Please can you give me regular expression using jquery.I can enter any charcters except (<,>).If i enter these characters i am getting below error.
"A potentially dangerous Request.Form value was detected from the client (ctl00$ctl00$MainContent$uxHome$uxQuickSearch$txtKeyword="<test"). "
To avoid this error i want to validate text box not allowing html characters.
Please provide me regex pattern with jquery or Javascript.



(No response found.)

Login to post response