Merge pull request #47 from samsonjs/master

Decode HTML entities for text format
This commit is contained in:
Remy Sharp 2011-10-19 07:35:27 -07:00
commit 4811f4b7d0

View file

@ -74,6 +74,7 @@
if ($format == 'txt') {
$license = array_shift(explode('</article>', array_pop(explode('<article>', $license))));
$license = preg_replace('/<[^>]*>/', '', trim($license));
$license = html_entity_decode($license);
header('content-type: text/plain');
}