title: jQuery: Replacing an Array with Another
body: <p>I use the below code for replacing all instances of a character with another:</p>
  
  <pre><code>$("#myContent").each(function () {
      $(this).html($(this).html().replace("1", "一"));
  })
  
  $("#myContent").each(function () {
      $(this).html($(this).html().replace("2", "二"));
  })
  
  $("#myContent").each(function () {
      $(this).html($(this).html().replace("3", "三"));
  })
  
  ...
  </code></pre>
  
  <p>How can I put all these together, something like replacing an array with another?</p>