<div class="alert alert-danger" role="alert"> <span class="fa fa-exclamation-circle" aria-hidden="true"></span> {% if message starts with "?!HTML::" %} {{ message|slice(8)|raw }} {% else %} {{ message }} {% endif %} </div>