newline_to_br
Replaces newline characters (\n) within a string with HTML line break tags (<br>).
Parameters
str{String}: The input string. This parameter is required.returns{String}: The resulting string with HTML line breaks.
Usage
{{ newline_to_br str }}
Example
{{ newline_to_br product.description }}
Was this article helpful to you?