mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-03-25 09:25:49 +00:00
Fixed re-encoding of characters when license is in txt format. Fixes #184
This commit is contained in:
parent
ce0bfc699c
commit
a01ca8a496
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@
|
|||
if ($format == 'txt') {
|
||||
$license = array_shift(explode('</article>', array_pop(explode('<article>', $license))));
|
||||
$license = preg_replace('/<[^>]*>/', '', trim($license));
|
||||
$license = html_entity_decode($license);
|
||||
$license = html_entity_decode($license, ENT_COMPAT | ENT_HTML401, 'UTF-8');
|
||||
header('content-type: text/plain; charset=UTF-8');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue