tbranyen / combyne

A template engine that works the way you expect.
MIT License
144 stars 19 forks source link

how to use "<" and ">" character in generated code #86

Closed quantjin closed 8 years ago

quantjin commented 8 years ago

Hello, I have "<" and ">" in the json file, in the generated code, it's converted to &lt; and &gt;

How do i use "<" and ">" in generated code?

Thanks!

tbranyen commented 8 years ago

https://github.com/tbranyen/combyne/blob/master/README.md#security

tbranyen commented 8 years ago

Specially:

By default all templates are encoded to avoid possible issues arising from XSS attacks. This is specifically applied to properties and you can avoid this by using the raw property style: {{{ value }}}. This is very similar to Mustache.

Let me know if you're still stuck!