Merge pull request #4686 from Roardom/fix-apos

This commit is contained in:
HDVinnie
2025-05-04 22:02:50 -04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -58,6 +58,6 @@ class Page extends Model
*/
public function getContentHtml(): string
{
return Markdown::convert(htmlspecialchars_decode((new Bbcode())->parse($this->content, false)))->getContent();
return Markdown::convert(htmlspecialchars_decode((new Bbcode())->parse($this->content, false), ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML5))->getContent();
}
}
+1 -1
View File
@@ -52,6 +52,6 @@ class Wiki extends Model
*/
public function getContentHtml(): string
{
return Markdown::convert(htmlspecialchars_decode((new Bbcode())->parse($this->content, false)))->getContent();
return Markdown::convert(htmlspecialchars_decode((new Bbcode())->parse($this->content, false), ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML5))->getContent();
}
}