title: Best way to replace multiple characters in a string?
body: <p>I need to replace some characters as follows: <code>&amp;</code> ➔ <code>\&amp;</code>, <code>#</code> ➔ <code>\#</code>, ...</p>
  
  <p>I coded as follows, but I guess there should be some better way. Any hints?</p>
  
  <pre><code>strs = strs.replace('&amp;', '\&amp;')
  strs = strs.replace('#', '\#')
  ...
  </code></pre>