Online XHTML character encoder

Need a quick an easy way to convert html code to the html entities so
you can post online? Check out the online XHTML Character Encoder.
It will let you take something like this:

<h1>This is a test</h1>

into something like this that you can post:

<h1>This is a test</h1>