mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-04-27 15:07:42 +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 = array_shift(explode('</article>', array_pop(explode('<article>', $license))));
|
||||||
$license = preg_replace('/<[^>]*>/', '', trim($license));
|
$license = preg_replace('/<[^>]*>/', '', trim($license));
|
||||||
$license = html_entity_decode($license, ENT_COMPAT | ENT_HTML401, 'UTF-8');
|
$license = html_entity_decode($license, ENT_COMPAT | ENT_HTML401, 'UTF-8');
|
||||||
|
$license .= "\n";
|
||||||
header('content-type: text/plain; charset=UTF-8');
|
header('content-type: text/plain; charset=UTF-8');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue