public function escapeMarkdown($string) { return str_replace(['[', '`', '*', '_'], ['\\[', '\\`', '\\*', '\\_'], $string); }