mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-04-02 10:45:51 +00:00
decode HTML entities for text format
This commit is contained in:
parent
c7ce2a8ee6
commit
fe52de60b0
1 changed files with 1 additions and 0 deletions
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue