decode HTML entities for text format

This commit is contained in:
Sami Samhuri 2011-10-19 07:28:06 -07:00
parent c7ce2a8ee6
commit fe52de60b0

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');
}