mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-04-27 15:07:42 +00:00
Merge branch 'master' of github.com:remy/mit-license
This commit is contained in:
commit
330da58d14
1 changed files with 1 additions and 0 deletions
|
|
@ -74,6 +74,7 @@
|
||||||
if ($format == 'txt') {
|
if ($format == 'txt') {
|
||||||
$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);
|
||||||
header('content-type: text/plain');
|
header('content-type: text/plain');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue