Jingo comes with a filter that does this called `nl2br`: https://github.com/jbalogh/jingo/blob/master/jingo/helpers.py#L46