replace-quote

replace-quote is a compiled Lisp function in `replace.el'.

(replace-quote REPLACEMENT)

Quote a replacement string.
This just doubles all backslashes in REPLACEMENT and
returns the resulting string. If REPLACEMENT is not
a string, it is first passed through `prin1-to-string'
with the `noescape' argument set.

`match-data' is preserved across the call.