Regex Validation pattern that will not allow any html tag to be entered

Viewed 10

so I have a form and I want to add a regex validation so that no HTML tag is entered there. (i.e in some cases some people add <"b"> or some other HTML tags when entering a data) I want to avoid that by putting a validation in that form field.

This is one of the validation regex we use for email address, want something similar to reject HTML tags in being entered

^((?!gmail.com|hotmail.com|yahoo.com|outlook.com|protonmail.com|onlinemailbox.cc|businessmailsystem.com|smcclient.com|emailsl.com|temporary-mail.net|companycontacts.net|yopmail.com|mail.ee|onlinemailbox.cc).)*$

This is the dashboard where I enter the validation for reference enter image description here

0 Answers
Related