title: How to configure Twig to automatically escape data inside double curly braces?
body: <p>I am using Twig <strong>without</strong> Symfony.</p>
  
  <p>I have configured an instance of Twig, this way:</p>
  
  <pre><code>$twig = new Twig_Environment($loader, [
      'autoescape' =&gt; 'html',
      'cache' =&gt; false,
  ]);
  </code></pre>
  
  <p>However, in my template, I have many output variables in many different places.
  To escape the data, I have to write:</p>
  
  <pre><code>{{ var1 | e }}
  {{ var2 | e }}
  ..
  {{ varN | e }}
  </code></pre>
  
  <p>without escape filter <code>| e</code> the data is not automatically escaped despite I've configured a Twig instance to do that.</p>
  
  <p>So, my question is, how should I confiure Twig, so all my outputs inside double curly braces would be automatically escaped, using html strategy?</p>
  
  <p>If I need to write unescaped data, I will use <code>{{ varX | raw }}</code></p>