title: How to strip newlines in jekyll?
body: <p>I know about <a href="https://shopify.github.io/liquid/filters/strip_newlines/" rel="nofollow noreferrer">strip_newlines</a> but it doesn't doing what I want:</p>
  
  <pre><code>{% capture string %}
  Hello
  there
  {% endcapture %}
  
  {{ string | strip_newlines }}
  </code></pre>
  
  <p>Outputs <code>Hellothere</code> but I need <code>Hello there</code> insead.</p>
  
  <p>Replace doesn't working too, because you can't put newline char.</p>
  
  <pre><code>{{ string | replace: '\n', ' ' }}
  </code></pre>
  
  <p>How to replace all newlines with space? For example for usage in meta tags.</p>