Skip to content

Commit

Permalink
CDATA section for category elements in RSS feed
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazin authored and Dimitris Giotas committed Jun 17, 2016
1 parent 8973590 commit a3a0dd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/Zend/Feed/Rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,8 @@ protected function _mapFeedEntries(DOMElement $root, $array)

if (isset($dataentry->category)) {
foreach ($dataentry->category as $category) {
$node = $this->_element->createElement('category', $category['term']);
$node = $this->_element->createElement('category');
$node->appendChild($this->_element->createCDATASection($category['term']));
if (isset($category['scheme'])) {
$node->setAttribute('domain', $category['scheme']);
}
Expand Down

0 comments on commit a3a0dd8

Please sign in to comment.