> For the complete documentation index, see [llms.txt](https://v5docs.keyfax.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v5docs.keyfax.biz/reference/expression-reference/text-expressions/chr-and-line-breaks.md).

# Chr and line breaks

Characters you cannot type into an expression, for use with [Replace](/reference/expression-reference/text-expressions/replace.md) and `&`.

| Function        | Gives                                      |
| --------------- | ------------------------------------------ |
| `Chr(n)`        | The character with that code               |
| `ChCR`          | A carriage return                          |
| `ChLF`          | A line feed                                |
| `ChCRLF`        | A carriage return and a line feed together |
| `HtmlLineBreak` | The text `<br/>`                           |

| Expression                    | Databox value            | Result                         |
| ----------------------------- | ------------------------ | ------------------------------ |
| `Replace(", ", ChCRLF)`       | `line 1, line 2, line 3` | Three lines                    |
| `Replace(",", HtmlLineBreak)` | `line 1,line 2,line 3`   | `line 1<br/>line 2<br/>line 3` |

Which one to use depends on where the text is going. A message rendered as HTML needs `HtmlLineBreak`; a plain-text task such as an SMS or a note needs `ChCRLF`.
