diff --git a/wire/core/Notices.php b/wire/core/Notices.php index a04b4391..78984e54 100644 --- a/wire/core/Notices.php +++ b/wire/core/Notices.php @@ -171,6 +171,9 @@ class Notices extends WireArray { protected function addLog($item) { /** @var Notice $item */ $text = $item->text; + if($item->flags & Notice::allowMarkup && strpos($text, '&') !== false) { + $text = $this->wire('sanitizer')->unentities($text); + } if($this->wire('config')->debug && $item->class) $text .= " ($item->class)"; $this->wire('log')->save($item->getName(), $text); }