mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-04-03 10:55:49 +00:00
Fixed #293 add newline to txt
This commit is contained in:
parent
3af3aa6570
commit
a8f1791c13
1 changed files with 1 additions and 0 deletions
|
|
@ -148,6 +148,7 @@
|
|||
$license = array_shift(explode('</article>', array_pop(explode('<article>', $license))));
|
||||
$license = preg_replace('/<[^>]*>/', '', trim($license));
|
||||
$license = html_entity_decode($license, ENT_COMPAT | ENT_HTML401, 'UTF-8');
|
||||
$license .= "\n";
|
||||
header('content-type: text/plain; charset=UTF-8');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue