Handlebars.compile allows to disable HTML escaping via noEscape but I'm looking for more control over the escaping to support arbitrary output formats with their own escaping rules.
I'd propose a new escapeExpression option on Handlebars.compile which takes a function that will do the escaping in place of Handlebars.escapeExpression.
Handlebars.compile
allows to disable HTML escaping vianoEscape
but I'm looking for more control over the escaping to support arbitrary output formats with their own escaping rules.I'd propose a new
escapeExpression
option onHandlebars.compile
which takes a function that will do the escaping in place ofHandlebars.escapeExpression
.