aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Helper/EntriesExport.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-02-01 15:35:30 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-02-04 20:31:26 +0100
commitd3f31ec485c2d8d0fcf9361d137aa482d6a939ea (patch)
tree57600b919d8cf1f57161866f3810c41af197d681 /src/Wallabag/CoreBundle/Helper/EntriesExport.php
parentf161122412ea73f8939d581bfbd383b3655cd4c1 (diff)
downloadwallabag-d3f31ec485c2d8d0fcf9361d137aa482d6a939ea.tar.gz
wallabag-d3f31ec485c2d8d0fcf9361d137aa482d6a939ea.tar.zst
wallabag-d3f31ec485c2d8d0fcf9361d137aa482d6a939ea.zip
CS
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper/EntriesExport.php')
-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 *