If you want to fix the problems with html code showing up in the message center, use .html_safe on this: