Hii,
I want to restrict the html entities like '<' , ">" , "&"etc but it should accept ‘<‘ and ‘>’ when i click on a button
from the javascript. Can anybody gives me the regular expression for that
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Updated regex for all entities, including numeric…
Javascript like:
will strip just about every
non-numerichtml entity..
UPDATE:
Based on comment:
.
You can test for entities with:
.
You can get a list of the entities with: