Escape HTML characters when emitting documentation.

The arguments for Template() include a default argument with a value
of <template>. During doc generation, this was not being escaped causing
web browsers to stop rendering the rest of the documentation.