in reply to Chatter box like parser

And, of course, you want to validate the HTML, keep people from slipping in images, etc, etc, etc.

For a good start, see Why I like functional programming.