/** * Transforms the given 'msg' to text. * Adds a type-specific style to the output string. * @param string $msg * @return string * @access private */ protected function _prepare($msg) { $Result = parent::_prepare($msg); $Result = str_replace("\\", "\\\\", $Result); $Result = str_replace('"', '\\"', $Result); $Result = str_replace("'", "\\'", $Result); $Result = str_replace("\n", '\\n', $Result); $Result = str_replace("\r", '\\n', $Result); return $Result; }