<div class="message <?= $escape->attr($stat_class) ?>"> <span class="icon"></span> <?= $escape->html($message) ?> <span class="close" onclick="this.parentElement.style.display='none'">x</span> </div>