HTML Validation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a requirement to validate some html at approx the ie6 level. The
validation cant take place use a web control, but must be done in an event
such as post back. Does anyone know of ideally an existing component I can
sent the html to and get back at a minimum a boolean to specify if the
validation was passed? Or a regular expression?
I have a third party rich text control, the users are on occasion cut and
pasting in badly malformed html, so validation is necessary.
Thanks much
Mark
 
I have a third party rich text control, the users are on occasion cut and
pasting in badly malformed html, so validation is necessary.

You can supposedly use HTMLTidy with .net to do this. Haven't used it
myself, though.

You are much better off dumping that particular rich text control and get
one that produces valid markup to begin with. Take a look at xstandard...the
best one I've yet found in terms of valid markup.

-Darrel
 
Back
Top