mirror of
https://github.com/wallabag/wallabag.git
synced 2025-04-25 19:34:07 +00:00
CS
This commit is contained in:
parent
f161122412
commit
d3f31ec485
1 changed files with 4 additions and 4 deletions
|
@ -364,11 +364,12 @@ class EntriesExport
|
||||||
private function produceTXT()
|
private function produceTXT()
|
||||||
{
|
{
|
||||||
$content = '';
|
$content = '';
|
||||||
$bar = str_repeat("=",100);
|
$bar = str_repeat('=', 100);
|
||||||
foreach ($this->entries as $entry) {
|
foreach ($this->entries as $entry) {
|
||||||
$content .= "\n\n" . $bar . "\n\n" . $entry->getTitle() . "\n\n" . $bar . "\n\n";
|
$content .= "\n\n".$bar."\n\n".$entry->getTitle()."\n\n".$bar."\n\n";
|
||||||
$content .= trim(preg_replace('/\s+/S', ' ', strip_tags($entry->getContent()))) . "\n\n";
|
$content .= trim(preg_replace('/\s+/S', ' ', strip_tags($entry->getContent())))."\n\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
return Response::create(
|
return Response::create(
|
||||||
$content,
|
$content,
|
||||||
200,
|
200,
|
||||||
|
@ -380,7 +381,6 @@ class EntriesExport
|
||||||
)->send();
|
)->send();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a Serializer object for producing processes that need it (JSON & XML).
|
* Return a Serializer object for producing processes that need it (JSON & XML).
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue