mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-30 15:42:41 +01:00
Decode HTML entities
Decode HTML entities in page text before saving it to the database.
This commit is contained in:
parent
d9e2bddee4
commit
311a12b7ef
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user