]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
d9e2bdd
)
Decode HTML entities
2257/head
author
Vinnie Okada
<redacted>
Fri, 18 Sep 2020 12:54:30 +0000
(06:54 -0600)
committer
Vinnie Okada
<redacted>
Fri, 18 Sep 2020 12:54:30 +0000
(06:54 -0600)
Decode HTML entities in page text before saving it to the database.
app/Entities/Managers/PageContent.php
patch
|
blob
|
history
diff --git
a/app/Entities/Managers/PageContent.php
b/app/Entities/Managers/PageContent.php
index 36bc2445c33caeb015b7cf6acd847d8fe6eb0fa0..96399f91f3aa23289a17ffeaed6fd539a4263df1 100644
(file)
--- 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()
);
}
/**