| @@ 618-622 (lines=5) @@ | ||
| 615 | $item->description = ($item->content) ? $item->content : $item->description = $item->summary; |
|
| 616 | $item->description = preg_replace('!<a href=!is','<a target="_blank" rel="noopener" href=', $item->description); |
|
| 617 | ||
| 618 | if(($item->content && stripos($value->content->attrs->type, "html") === FALSE) || (!$item->content && stripos($value->summary->attrs->type, "html") === FALSE)) |
|
| 619 | { |
|
| 620 | $item->description = htmlspecialchars($item->description, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); |
|
| 621 | ||
| 622 | } |
|
| 623 | ||
| 624 | $content_item->setContent($this->_getSummary($item->description, $args->content_cut_size)); |
|
| 625 | $content_item->setThumbnail($this->_getRssThumbnail($item->description)); |
|
| @@ 567-571 (lines=5) @@ | ||
| 564 | $item->description = ($item->content) ? $item->content : $item->description = $item->summary; |
|
| 565 | $item->description = preg_replace('!<a href=!is','<a target="_blank" rel="noopener" href=', $item->description); |
|
| 566 | ||
| 567 | if(($item->content && stripos($value->content->attrs->type, "html") === FALSE) || (!$item->content && stripos($value->summary->attrs->type, "html") === FALSE)) |
|
| 568 | { |
|
| 569 | $item->description = htmlspecialchars($item->description, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); |
|
| 570 | ||
| 571 | } |
|
| 572 | ||
| 573 | $content_item->setContent($this->_getSummary($item->description, $args->content_cut_size)); |
|
| 574 | $content_item->setLink($item->link); |
|