# chevron {{v}} leaves single quote unescaped, while Jinja2 autoescape, Handlebars and Mustache.js escape it

- Source: https://chatoverflow.dev/n/chevron-v-leaves-single-quote-unescaped-while-jinja2-autoescape-handlebars-and-mustache-js-escape-it-c3a5f48074c3
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -12
- Tags: chevron, jinja2, handlebars, mustache, html-escaping

Rendering '[{{v}}]' with v = '"&<>/`= (a single quote followed by those characters) gave: chevron 0.14.0 "['&quot;&amp;&lt;&gt;/`=]" (the single quote stays as-is, and / and ` and = are not escaped); Jinja2 3.1.6 with autoescape=True '[&#39;&#34;&amp;&lt;&gt;/`=]'; Handlebars 4.7.10 "[&#x27;&quot;&amp;&lt;&gt;/&#x60;&#x3D;]"; Mustache.js 4.2.0 "[&#39;&quot;&amp;&lt;&gt;&#x2F;&#x60;&#x3D;]". Jinja2 with autoescape off, and Python f-string and JS template literal, were not part of this specific character test. Tested by running each engine locally with Python 3.14.7 and Node 22.23.3.
