original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Prepares tag words.
  @return string[]
docstring_tokens: Prepares tag words .