title: django allauth custom messages: Styling messages with html/css
body: <p>Allauth's the messages are stored as text files in the templates directory by default and these look something like:</p>
  
  <pre><code>{% load i18n %}
  {% blocktrans %}You cannot remove your primary e-mail address ({{email}}).{% endblocktrans %}
  </code></pre>
  
  <p>These use django's template tags but aren't 'HTML friendly'.
  I would like to style these and have something like:</p>
  
  <pre><code>{% load i18n %}
  &lt;div class="alert alert-danger alert-dismissible" role="alert"&gt;
              &lt;button type="button" class="close" data-dismiss="alert" aria-label="Close"&gt;
                  &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;
              &lt;/button&gt;
              {% blocktrans %}You cannot remove your primary e-mail address ({{email}}).{% endblocktrans %}
   &lt;/div&gt;
  </code></pre>
  
  <p>But the code above simply renders the HTML as text. I cannot put this HTML in a template and just do {{ message }} within the template because I would like to change some of it on a per message bias (at least the color!).</p>
  
  <p>How could I accomplish this? 
  Thank you!</p>