Last active
May 6, 2023 12:54
-
-
Save ihorduchenko/d1b15226279e69cde63ae003f8a42d32 to your computer and use it in GitHub Desktop.
Split text field to multiple lines using 'newline_to_br' and 'split' filters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- assign text_rows = text | newline_to_br | split: '<br />' -%} | |
{%- for row in text_rows -%} | |
{{ row }} | |
{%- endfor -%} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment