> For the complete documentation index, see [llms.txt](https://docs.devhub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devhub.com/themes-and-custom-templates/advanced-examples/adding-line-breaks-to-content.md).

# Adding line breaks to content

This option allows you to take a variable piece of content like:

```
Line one
Line two
```

And convert it to some HTML output that looks like:

```markup
<p>
  Line one<br>
  Line two
</p>
```

### Usage

```markup
{{ some_variable|nl2br|safe }}
```
