Méthode | Description | |
---|---|---|
__construct ( string $html ) | Constructor. | |
execute ( ) : string | Get the relevant content with the list of potential attributes. | |
findContentWithArticle ( ) : string |
Find |
|
findContentWithBody ( ) : string | Find tag. | |
findContentWithCandidates ( ) : string | Find content based on the list of tag candidates. | |
findNextLink ( ) : string | Find link for next page of the article. | |
shouldRemove ( DomDocument $dom, DomNode $node ) : boolean | Return false if the node should not be removed. | |
stripAttributes ( DomDocument $dom, DOMXPath $xpath ) | Remove blacklisted attributes. | |
stripGarbage ( string $content ) : string | Strip useless tags. | |
stripTags ( DOMXPath $xpath ) | Remove blacklisted tags. |
public findContentWithArticle ( ) : string | ||
Résultat | string |
public findContentWithBody ( ) : string | ||
Résultat | string |
public findContentWithCandidates ( ) : string | ||
Résultat | string |
public findNextLink ( ) : string | ||
Résultat | string |
public shouldRemove ( DomDocument $dom, DomNode $node ) : boolean | ||
$dom | DomDocument | |
$node | DomNode | |
Résultat | boolean |
public stripAttributes ( DomDocument $dom, DOMXPath $xpath ) | ||
$dom | DomDocument | |
$xpath | DOMXPath |
public stripGarbage ( string $content ) : string | ||
$content | string | |
Résultat | string |
public stripTags ( DOMXPath $xpath ) | ||
$xpath | DOMXPath |