diff options
author | Andres Rey <[email protected]> | 2016-10-20 09:18:42 +0100 |
---|---|---|
committer | Andres Rey <[email protected]> | 2016-10-20 09:18:42 +0100 |
commit | ae26103cfd38a292f74046f3d657a8d166721401 (patch) | |
tree | cece07cc0808facdbf7b26737c4d888334924599 /src/Readability.php | |
parent | 03beb80b28ea8d07cfa6a5b53dec50ec527357ea (diff) |
Added link density
Diffstat (limited to 'src/Readability.php')
-rw-r--r-- | src/Readability.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Readability.php b/src/Readability.php index 1141a29..7f3b1c1 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -150,4 +150,14 @@ class Readability implements ReadabilityInterface { return $this->node->getChildrenAsString(); } + + /** + * Returns all links from the current element. + * + * @return DOMElement|null + */ + public function getAllLinks() + { + return $this->node->getAllLinks(); + } } |