private function processContentStopWords($content) { foreach (ContentStopWords::findAll(["source_id" => $this->source->id]) as $csw) { if ($pos = mb_strpos($content, $csw->word, null, "utf-8")) { $content = mb_substr($content, 0, $pos, "utf-8"); } } return $content; }