fix template to work with unescaped content