escape go template syntax {{}}
handle void (empty) tags, cleanup