URL Encode an HTML Stirng

To store HTML, sometimes it needs to be URL encoded so that it doesn't have the actual tags in it (< >). This page does that.

This page also does some validation of the HTML. I took the code from:
C# Validate XHTML by Sam Allen
So check it out if you want more information on how the actual HTML validation works. Javascript will not validate in the page.