title: How to display HTML in twig whilst still trimming the length of what is displayed
body: <p>I am displaying a block of rich text inside a twig page using:</p>
  
  <pre><code>{{ log.entry | raw }}
  </code></pre>
  
  <p>This displays it in the rich text format, however I was previously only displaying the first 50 characters of this using </p>
  
  <pre><code>{{ log.entry[:50] ~ '...'}}
  </code></pre>
  
  <p>When I combine the two in either of the below formats:</p>
  
  <pre><code>{{ log.entry[:50] ~ '...' | raw }}
  
  
  {{ log.entry | raw [:50] ~ '...'}}
  </code></pre>
  
  <p>It displays it in the none html formatted way. Any thoughts on how to go about displaying around 50 characters of the text in its rich text format using twig?</p>