Escape 'type'

This is for #11 

We can't change the template field from {{{ }}} to {{ }} because one of the other uses is for links.