aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Helper/EntriesExport.php8
1 files changed, 4 insertions, 4 deletions
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
364 private function produceTXT() 364 private function produceTXT()
365 { 365 {
366 $content = ''; 366 $content = '';
367 $bar = str_repeat("=",100); 367 $bar = str_repeat('=', 100);
368 foreach ($this->entries as $entry) { 368 foreach ($this->entries as $entry) {
369 $content .= "\n\n" . $bar . "\n\n" . $entry->getTitle() . "\n\n" . $bar . "\n\n"; 369 $content .= "\n\n".$bar."\n\n".$entry->getTitle()."\n\n".$bar."\n\n";
370 $content .= trim(preg_replace('/\s+/S', ' ', strip_tags($entry->getContent()))) . "\n\n"; 370 $content .= trim(preg_replace('/\s+/S', ' ', strip_tags($entry->getContent())))."\n\n";
371 } 371 }
372
372 return Response::create( 373 return Response::create(
373 $content, 374 $content,
374 200, 375 200,
@@ -380,7 +381,6 @@ class EntriesExport
380 )->send(); 381 )->send();
381 } 382 }
382 383
383
384 /** 384 /**
385 * Return a Serializer object for producing processes that need it (JSON & XML). 385 * Return a Serializer object for producing processes that need it (JSON & XML).
386 * 386 *