title: How remove new lines from string in twig
body: <p>I have this code:</p>
  
  <pre><code>{% set pageDescription = item.description|length &gt; 197 ? item.description|striptags|trim|slice(0, 197) ~ '...' : item.description %}
  </code></pre>
  
  <p>I will remove new lines from item.description</p>
  
  <p>example I have </p>
  
  <pre><code>&lt;meta name="description" content="An easy playing game about the natural numbers. There will randomly appear the natural. You have to choose what the right after number is. It&amp;amp;#8217;s so easy to play this game, isn&amp;amp;#8217;t it?
  
  The..." /&gt;
  </code></pre>
  
  <p>change to</p>
  
  <pre><code>&lt;meta name="description" content="An easy playing game about the natural numbers. There will randomly appear the natural. You have to choose what the right after number is. It&amp;amp;#8217;s so easy to play this game, isn&amp;amp;#8217;t it? The..." /&gt;
  </code></pre>
  
  <p>How I can do?</p>
  
  <p>Thank you.</p>