-
Notifications
You must be signed in to change notification settings - Fork 231
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
mustache html escaping #497
Comments
i think this is a consequence of using |
A request ticket has been opened in the |
i guess this can be closed, we can re-open it if some development occurs in bbmustache |
galdor
added a commit
to galdor/relx
that referenced
this issue
Nov 21, 2020
The mustache template engine escapes HTML entities by default. This is quite annoying since we are not generating HTML pages in a web application. This problem was already referenced in erlware#497. Now that bbmustache supports a way to disable escaping by default, there is no reason not to do it. Additionally, escaping is already disabled in rebar3 templates (see fe8626ff7de635cc84da61b8b3deb553fe9572c9), so having both templating systems behave the same way makes sense.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
by default mustache escapes html so '&<> characters become html entities. it can be avoided by using {{{}}} instead of {{}} but this is really bizzare behaviour because html probably has nothing to do with the content type of the what is being templated. We template erlang term files where it would only make sense to escape " -> " (and other erlang string escapes)
The text was updated successfully, but these errors were encountered: