Skip to content

Commit

Permalink
Merge pull request #95 from alexdebril/issue/94
Browse files Browse the repository at this point in the history
Decode HTML special chars to fix #94
  • Loading branch information
alexdebril authored Jun 7, 2017
2 parents 1de756f + 005078e commit 604d63e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FeedIo/Rule/Description.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function setProperty(NodeInterface $node, \DOMElement $element)
}
}

$node->setDescription($string);
$node->setDescription(htmlspecialchars_decode($string));

return $this;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/FeedIo/Rule/DescriptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 604d63e

Please sign in to comment.