Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for custom escaping function in Handlebars.compile #1746

Open
silverwind opened this issue May 4, 2021 · 2 comments
Open

Option for custom escaping function in Handlebars.compile #1746

silverwind opened this issue May 4, 2021 · 2 comments
Labels

Comments

@silverwind
Copy link

silverwind commented May 4, 2021

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.

@Eric24
Copy link

Eric24 commented Jun 26, 2021

@silverwind - Did you do any more work on this? I'm interested in something similar.

@jaylinski
Copy link
Member

Related to #1523.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants