title: Default escaping in Freemarker
body: <p>In Freemarker templates we can use the escape directive to automatically apply an escaping to all interpolations inside the included block:</p>
  
  <pre><code>&lt;#escape x as x?html&gt;
    &lt;#-- name is escaped as html --&gt;
    Hallo, ${name}
  &lt;/#escape&gt;
  </code></pre>
  
  <p>Is there a way to programmatically achieve a similar effect, defining a default escape applied to all interpolations in the template, including those outside escape directives?</p>
  
  <p>Thanks.</p>