twig.js
twig.js copied to clipboard
Turn on autoescape by default
+1
Big +1 for this.
I'm very happy autoescape
functionality is already implemented. I am however curious about the reason as to why this feature hasn't been enabled by default.
+1
We will switch this on for the 0.9 milestone.
This does not work on twig 0.9.5:
twig = require 'twig'
template = twig.twig
data: "test {{test}}"
console.log template.render
test: "<h1>wtf</h1>"
# prints: test <h1>wtf</h1>
Would just like to add to this. Was rather surprised to see that it's not on by default