--- url: https://developer.youcan.shop/themes/filters/strings/newlineToBr.md --- # Newline To Br Adds an HTML `
` tag before each line break in a string. ## Example ::: details Data ```json { "description": "Line one\nLine two" } ``` ::: ```liquid {{ description | newline_to_br }} ``` ::: tip Output ```html Line one
Line two ``` :::