protected function prepareWords()
    {
        $cleanHtml = HtmlPurifier::process(trim($this->content));
        $purged = preg_replace('/<[^>]+>/', ' ', $cleanHtml);
        $wordsRaw = array_unique(preg_split('/[\s,\.\n]+/', $purged));
        $allWords = [];
        foreach ($wordsRaw as $word) {
            if (mb_strlen($word, 'UTF-8') > 2 && mb_strlen($word, 'UTF-8') <= 255) {
                $allWords[] = $word;
            }
        }
        return $allWords;
    }
protected function prepareWords()
    {
        $cleanHtml = HtmlPurifier::process(trim($this->content));
        $purged = preg_replace('/<[^>]+>/', ' ', $cleanHtml);
        $wordsRaw = array_unique(preg_split('/[\s,\.\n]+/', $purged));
        $allWords = [];
        foreach ($wordsRaw as $word) {
            if (mb_strlen($word, 'UTF-8') > 2 && mb_strlen($word, 'UTF-8') <= 255) {
                $allWords[] = $word;
            }
        }
        return $allWords;
    }
protected function prepareWords ( ) { $ cleanHtml = HtmlPurifier :: process ( trim ( $ this -> content ) ) ; $ purged = preg_replace ( '/<[^>]+>/' , ' ' , $ cleanHtml ) ; $ wordsRaw = array_unique ( preg_split ( '/[\s,\.\n]+/' , $ purged ) ) ; $ allWords = [ ] ; foreach ( $ wordsRaw as $ word ) { if ( mb_strlen ( $ word , 'UTF-8' ) > 2 && mb_strlen ( $ word , 'UTF-8' ) <= 255 ) { $ allWords [ ] = $ word ; } } return $ allWords ; }
Prepares tag words.
@return string[]
Prepares tag words .