mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 18:25:41 +03:00
425 B
425 B
title
| title |
|---|
| strip_newlines |
Removes any newline characters (line breaks) from a string.
Input
```liquid {% raw %} {% capture string_with_newlines %} Hello there {% endcapture %}{{ string_with_newlines | strip_newlines }} {% endraw %}
<p class="code-label">Output</p>
```html
{% capture string_with_newlines %}
Hello
there
{% endcapture %}
{{ string_with_newlines | strip_newlines }}