Validating input - checking for html

  • Thread starter Thread starter SL
  • Start date Start date
S

SL

Does anyone have a good method for checking user input to be sure they
haven't entered html code into a text input field?

TIA,
Sheryl
 
Regular Expressions is a good method. You could attempt to parse the entire
thing, but that would be overkill when Regex can catch patterns. Exactly what
the person entered wrong will require a bit of parsing, however.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top