From bfa4d0050ea357e0295b9a5b86b7504679d58afe Mon Sep 17 00:00:00 2001 From: Andres Rey Date: Sat, 2 Dec 2017 21:08:46 +0000 Subject: Add small template on __toString magic method --- src/Readability.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Readability.php b/src/Readability.php index f73a860..90d18d7 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -1409,7 +1409,7 @@ class Readability */ public function __toString() { - return $this->getContent(); + return sprintf('

%s

%s', $this->getTitle(), $this->getContent()); } /** -- cgit v1.2.3