'Replaces
by <br />
Inspired from http://jinja.pocoo.org/docs/dev/api/#custom-filters'

@classmethod
def _to_br(self, text):

    result = '<br    />'.join((p for p in self._TEXT_LINEBREAK_RE.split(escape(text))))
    return Markup(result)
