mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-04-15 12:55:47 +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') {
|
||||
$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