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