private function genStrippedText() { $this->stripTags(true); $pattern = "/(\r\n|\n|\r)/"; $repl = " "; $this->strippedText = preg_replace($pattern, $repl, $this->noTagText); }