diff options
author | Andres Rey <[email protected]> | 2017-12-02 21:08:46 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2017-12-02 21:08:46 +0000 |
commit | bfa4d0050ea357e0295b9a5b86b7504679d58afe (patch) | |
tree | 0ebfba972bc555b6438f98408595f3da3cf24110 | |
parent | cbc70a6319662ee24ffd54bfb659953fa4bfaddb (diff) |
Add small template on __toString magic method
-rw-r--r-- | src/Readability.php | 2 |
1 files changed, 1 insertions, 1 deletions
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('<h1>%s</h1>%s', $this->getTitle(), $this->getContent()); } /** |