Escape HTML characters when emitting documentation.

The arguments for Template() include a default argument with a value
of &lt;template&gt;. During doc generation, this was not being escaped causing
web browsers to stop rendering the rest of the documentation.

This fixes #243