summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2017-12-02 21:08:46 +0000
committerAndres Rey <[email protected]>2017-12-02 21:08:46 +0000
commitbfa4d0050ea357e0295b9a5b86b7504679d58afe (patch)
tree0ebfba972bc555b6438f98408595f3da3cf24110 /src
parentcbc70a6319662ee24ffd54bfb659953fa4bfaddb (diff)
Add small template on __toString magic method
Diffstat (limited to 'src')
-rw-r--r--src/Readability.php2
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());
}
/**