diff --git a/components/com_content/src/View/Featured/FeedView.php b/components/com_content/src/View/Featured/FeedView.php index 29672d7ddbba9..63b0b0f6c812e 100644 --- a/components/com_content/src/View/Featured/FeedView.php +++ b/components/com_content/src/View/Featured/FeedView.php @@ -63,7 +63,7 @@ public function display($tpl = null) foreach ($rows as $row) { // Strip html from feed item title - $title = htmlspecialchars($row->title, ENT_QUOTES, 'UTF-8'); + $title = $this->escape($row->title); $title = html_entity_decode($title, ENT_COMPAT, 'UTF-8'); // Compute the article slug diff --git a/libraries/src/MVC/View/CategoryFeedView.php b/libraries/src/MVC/View/CategoryFeedView.php index 7e47a124473b5..a428da48f2939 100644 --- a/libraries/src/MVC/View/CategoryFeedView.php +++ b/libraries/src/MVC/View/CategoryFeedView.php @@ -97,7 +97,7 @@ public function display($tpl = null) // Strip html from feed item title if ($titleField) { - $title = htmlspecialchars($item->$titleField, ENT_QUOTES, 'UTF-8'); + $title = $this->escape($item->$titleField); $title = html_entity_decode($title, ENT_QUOTES, 'UTF-8'); } else { $title = '';