diff --git a/app/Models/Page.php b/app/Models/Page.php index 0a366f9646..04e316f3e2 100644 --- a/app/Models/Page.php +++ b/app/Models/Page.php @@ -58,6 +58,6 @@ public function setContentAttribute(?string $value): void */ public function getContentHtml(): string { - return Markdown::convert((new Bbcode())->parse($this->content, false))->getContent(); + return Markdown::convert(htmlspecialchars_decode((new Bbcode())->parse($this->content, false)))->getContent(); } } diff --git a/app/Models/Wiki.php b/app/Models/Wiki.php index 464f56259f..6fcb0424ab 100644 --- a/app/Models/Wiki.php +++ b/app/Models/Wiki.php @@ -52,6 +52,6 @@ public function category(): \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function getContentHtml(): string { - return Markdown::convert((new Bbcode())->parse($this->content, false))->getContent(); + return Markdown::convert(htmlspecialchars_decode((new Bbcode())->parse($this->content, false)))->getContent(); } }