Escape double quotes

Tried `(s-replace-all '(("\n" . "\\n") ("\"" . "\\\"")) (s-trim coffee-code))` but it was giving me  "Invalid use of `\' in replacement text"