handlebars.java
handlebars.java copied to clipboard
[REQ] Request for a python 3 EscapeStrategy
Hey there, thank you very much for the library. I use it to generate python client code for openapi-generator applications
One issue that comes up is that if I want to include some escaped text in a python comment, html escaping is used and I see rendered output like:
To test \"client\" model
It would be great if I could change the EscapeStrategy to a python options so {{summary}} would be correctly escaped for python
https://www.javadoc.io/doc/com.github.jknack/handlebars/4.0.6/com/github/jknack/handlebars/EscapingStrategy.html#NOOP
Python string escape sequence info is here: https://docs.python.org/3/reference/lexical_analysis.html#strings