We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ae1c05 commit 0c7703cCopy full SHA for 0c7703c
src/libraries/NewsPost.php
@@ -236,15 +236,15 @@ public function getCategoryId() {
236
return $this->category_id;
237
}
238
239
- public function getContent($prepare) {
240
- if (!$prepare) {
+ public function getContent(bool $render) {
+ if (!$render) {
241
return $this->content;
242
243
if ($this->options_bitmask & self::OPTION_MARKDOWN) {
244
$md = new Parsedown();
245
return $md->text($this->content);
246
} else {
247
- return htmlspecialchars($this->content, ENT_HTML5, "UTF-8");
+ return filter_var($this->content, FILTER_SANITIZE_FULL_SPECIAL_CHARS);
248
249
250
0 commit comments