public function escapeUnicodeAndNewLine(string $value) : string { $value = preg_replace($this->patterns ->getNewLineEscapePattern(), '', $value); return $this->escapeUnicode($value); }