Adding HTML escape to template