X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FHelper%2FEntriesExport.php;h=c9aac6e54e11635aaa908229d4fdf21299e0d163;hb=d3f31ec485c2d8d0fcf9361d137aa482d6a939ea;hp=3f1fc43cc22e5b1dc8b4496ac430bdebf8d6a57c;hpb=f161122412ea73f8939d581bfbd383b3655cd4c1;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Helper/EntriesExport.php b/src/Wallabag/CoreBundle/Helper/EntriesExport.php index 3f1fc43c..c9aac6e5 100644 --- a/src/Wallabag/CoreBundle/Helper/EntriesExport.php +++ b/src/Wallabag/CoreBundle/Helper/EntriesExport.php @@ -364,11 +364,12 @@ class EntriesExport private function produceTXT() { $content = ''; - $bar = str_repeat("=",100); + $bar = str_repeat('=', 100); foreach ($this->entries as $entry) { - $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 .= "\n\n".$bar."\n\n".$entry->getTitle()."\n\n".$bar."\n\n"; + $content .= trim(preg_replace('/\s+/S', ' ', strip_tags($entry->getContent())))."\n\n"; } + return Response::create( $content, 200, @@ -380,7 +381,6 @@ class EntriesExport )->send(); } - /** * Return a Serializer object for producing processes that need it (JSON & XML). *