Search code examples
asp.nethtmlvalidationtelerikradeditor

How can I validate text as being valid HTML?


I'm using an older version of Telerik's Editor control, and storing the text that's input in a SQL database, then displaying the HTML later. Is there any way in ASP.NET (2.0) to validate a string as being valid HTML before saving to my database? Thanks!


Solution

  • You could start here:

    C# XHTML Validator

    Or here (regexes):

    Regular Expressions Library - entries tagged with "HTML"

    Or here ;)

    Google