Skip to content

Commit

Permalink
decode HTML entities for text format
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonjs committed Oct 19, 2011
1 parent c7ce2a8 commit fe52de6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.php
Expand Up @@ -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');
}

Expand Down

0 comments on commit fe52de6

Please sign in to comment.