private function getFormattedText(): string {
        $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());
    }
private function getFormattedText(): string {
        $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());
    }
private function getFormattedText ( ) : string { $ 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 ( ) ) ; }
Removes all unnecessary elements and formats the selected text nodes

@return string Formatted string with all HTML removed
Removes all unnecessary elements and formats the selected text nodes