From 311a12b7efe0522c1dd2848bf375c2ad8eaf6bed Mon Sep 17 00:00:00 2001 From: Vinnie Okada Date: Fri, 18 Sep 2020 06:54:30 -0600 Subject: [PATCH] Decode HTML entities Decode HTML entities in page text before saving it to the database. --- app/Entities/Managers/PageContent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Entities/Managers/PageContent.php b/app/Entities/Managers/PageContent.php index 36bc2445c..96399f91f 100644 --- a/app/Entities/Managers/PageContent.php +++ b/app/Entities/Managers/PageContent.php @@ -25,7 +25,7 @@ class PageContent public function setNewHTML(string $html) { $this->page->html = $this->formatHtml($html); - $this->page->text = $this->toPlainText(); + $this->page->text = html_entity_decode($this->toPlainText()); } /**