1

I'm surprised that I can't find anything on the net regarding javascript plugins to validate textarea objects for valid html markup. But the well is dry: does anyone know of a good example script that will parse the contents of a specified input and return false if it finds broken html markup within?

Aaron
  • 605
  • 1
  • 9
  • 19

1 Answers1

7

John Resig, the creator of jQuery, wrote an HTML parser:

http://ejohn.org/blog/pure-javascript-html-parser/

peterp
  • 3,145
  • 1
  • 20
  • 24