From 67f504834d1063a0133a27864667a80717356d96 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Tue, 11 Oct 2016 11:34:16 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#34 --- wire/core/Notices.php | 3 +++ 1 file changed, 3 insertions(+) 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); }