Decode HTML entities

Decode HTML entities in page text before saving it to the database.
This commit is contained in:
Vinnie Okada 2020-09-18 06:54:30 -06:00
parent d9e2bddee4
commit 311a12b7ef

View File

@ -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());
}
/**