I am loading data from a database. The textual data has line breaks `\n` as uploaded by the user, I would like to print this data on a html page. However line breaks do not occur. I have tried replacing `\n` with `<br>`, but that prints with `<br>` as part of the string instead of actually breaking the line.

How I replace

```
value['description'].replace('\n', '<br>')

```

How it appears:

[![screenshot showing literal <br>s in text](https://i.stack.imgur.com/aNhkV.png)](https://i.stack.imgur.com/aNhkV.png)