Beispiel #1
0
 public function _getContent()
 {
     $html = $this->getObjArticle();
     $header = explode('..............................', $html->plaintext);
     $header = $header[count($header) - 1];
     // ищу начало текста
     $i = 0;
     foreach (Str::getChars($header) as $item) {
         if ($item == '.') {
             $i++;
             continue;
         } else {
             break;
         }
     }
     $header = trim(Str::sub($header, $i));
     $strings = $this->getProposal($header);
     $pArray = $this->unionStrings($strings, 1000);
     $new = [];
     foreach ($pArray as $p) {
         $new[] = Html::tag('p', $p);
     }
     return join("\n", $new);
 }