Commit d2f51d9f authored by Roumen Damianoff's avatar Roumen Damianoff
Browse files

Merge pull request #53 from JamesForks/htmlentities

Use htmlentities
parents 04bad00c 1372d0ea
......@@ -223,12 +223,12 @@ class Feed
foreach($this->items as $k => $v)
{
$this->items[$k]['title'] = html_entity_decode(strip_tags($this->items[$k]['title']));
$this->items[$k]['title'] = htmlentities(strip_tags($this->items[$k]['title']));
$this->items[$k]['pubdate'] = $this->formatDate($this->items[$k]['pubdate'], $format);
}
$channel = [
'title' => html_entity_decode(strip_tags($this->title)),
'title' => htmlentities(strip_tags($this->title)),
'description' => $this->description,
'logo' => $this->logo,
'icon' => $this->icon,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment