title: Adding backslashes without escaping
body: <p>I need to escape a <code>&amp;</code> (ampersand) character in a string. The problem is whenever I <code>string = string.replace ('&amp;', '\&amp;')</code> the result is <code>'\\&amp;'</code>. An extra backslash is added to escape the original backslash. How do I remove this extra backslash?</p>