Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 0dc530d

Browse files
committed
CDATA section for category elements in RSS feed
1 parent 81f1234 commit 0dc530d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/Zend/Feed/Rss.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,8 @@ protected function _mapFeedEntries(DOMElement $root, $array)
433433

434434
if (isset($dataentry->category)) {
435435
foreach ($dataentry->category as $category) {
436-
$node = $this->_element->createElement('category', $category['term']);
436+
$node = $this->_element->createElement('category');
437+
$node->appendChild($this->_element->createCDATASection($category['term']));
437438
if (isset($category['scheme'])) {
438439
$node->setAttribute('domain', $category['scheme']);
439440
}

0 commit comments

Comments
 (0)