title: How do I output HTML in a message in the new Django messages framework?
body: <p>I'm trying to display a bit of html in a message that's being displayed via the new Django messages framework. Specifically, I'm doing this via the ModelAdmin.message_user method, which is just a thin wrapper around messages():</p>
  
  <pre><code>def message_user(self, request, message):
      """
      Send a message to the user. The default implementation
      posts a message using the django.contrib.messages backend.
      """
      messages.info(request, message)
  </code></pre>
  
  <p>Everything I've tried so far seems to display escaped HTML.</p>
  
  <pre><code>self.message_user(request, "&lt;a href=\"http://www.google.com\"&gt;Here's google!&lt;/a&gt;")
  </code></pre>
  
  <p>Doesn't work, nor does:</p>
  
  <pre><code>from django.utils.safestring import mark_safe
  ...
  self.message_user(request, mark_safe("&lt;a href=\"http://www.google.com\"&gt;Here's google!&lt;/a&gt;"))
  </code></pre>
  
  <p>The display of the template code in the admin base.html template is pretty straightforward:</p>
  
  <pre><code>    {% if messages %}
      &lt;ul class="messagelist"&gt;{% for message in messages %}&lt;li&gt;{{ message }}&lt;/li&gt;{% endfor %}&lt;/ul&gt;
      {% endif %}
  </code></pre>
  
  <p>So I'm not exactly sure what I am doing wrong.</p>
  
  <p>Thoughts or guidance greatly appreciated, thanks!</p>