title: Replace line breaks in plain text with BR tag in Django views
body: <p>Django provides <a href="https://docs.djangoproject.com/en/dev/ref/templates/builtins/#std%3atemplatefilter-linebreaks" rel="nofollow">linebreaks template tag</a> which works similarly to a PHP function <code>nl2br</code>.</p>
  
  <p>It works well, however it processes the given text with every request, what is a waste of resources. I would rather do it once, before saving it to a database.</p>
  
  <p>Is there any equivalent function to use in a Django view?</p>