using ld+json inline js #163
-
|
is there a good way to use inline js in eta templates? something like: Without being escaped like: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I'm confused by this question. Auto escape only runs within |
Beta Was this translation helpful? Give feedback.
-
|
Ok, thanks a lot. Yeah, I was totally wrong - the escaping came from by another part of my stack, not by ETA. I'm very thankful for your great template engine! |
Beta Was this translation helpful? Give feedback.
I'm confused by this question. Auto escape only runs within
<%= %>tags... so it shouldn't be escaped like that. That is unless you that itself is within an interpolation tag in which case you could just change it to<%~ %>, but be cautious of putting untrusted data in that.