noahmorrison / chevron

A Python implementation of mustache
MIT License
505 stars 55 forks source link

Disable HTML escaping? #79

Closed gaetgu closed 3 years ago

gaetgu commented 3 years ago

I have a project in which I am creating an html file with templates. I have done this with handlebars in the past, but I wanted to use chevron this time since it seems to be really easy to use. However, whenever I use any html tags (like \

etc.), it escapes them (like to \<h1\>)

I know this is not the kind of thing that I should file an issue for, but I couldn't find any sort of discord, slack etc., so this is the only place I know where to ask. If there is such a forum, can someone please direct me to it? Thanks!

mistercrunch commented 3 years ago

Similarly I'm considering this library to template/parameterize SQL code provided by users in a safer-than-jinja2 space, and I do not want to html-escape the SQL

dcmoore-gd commented 3 years ago

Use {{{ ... }}} instead of {{ ... }}.