Goose\Modules\Formatters\OutputFormatter::getFormattedText PHP 메소드

getFormattedText() 개인적인 메소드

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