diff --git a/src/FeedIo/Rule/Description.php b/src/FeedIo/Rule/Description.php index 99cb8e87..234d00e3 100644 --- a/src/FeedIo/Rule/Description.php +++ b/src/FeedIo/Rule/Description.php @@ -31,7 +31,7 @@ public function setProperty(NodeInterface $node, \DOMElement $element) } } - $node->setDescription($string); + $node->setDescription(htmlspecialchars_decode($string)); return $this; } diff --git a/tests/FeedIo/Rule/DescriptionTest.php b/tests/FeedIo/Rule/DescriptionTest.php index abbb1656..dc3260cd 100644 --- a/tests/FeedIo/Rule/DescriptionTest.php +++ b/tests/FeedIo/Rule/DescriptionTest.php @@ -50,7 +50,7 @@ public function testSetProperty() $document->appendChild($element); $this->object->setProperty($item, $element); - $this->assertEquals(htmlentities(self::HTML_DESCRIPTION), $item->getDescription()); + $this->assertEquals(self::HTML_DESCRIPTION, $item->getDescription()); } public function testCreateElement()