private getFormattedText ( ) : string | ||
Résultat | string | Formatted string with all HTML removed |
private function getFormattedText()
{
$this->removeNodesWithNegativeScores($this->article()->getTopNode());
$this->convertLinksToText($this->article()->getTopNode());
$this->replaceTagsWithText($this->article()->getTopNode());
$this->removeParagraphsWithFewWords($this->article()->getTopNode());
return $this->convertToText($this->article()->getTopNode());
}