title: Javascript — escape a character entity (→ is showing as &rarr;)
body: <pre><code>document.title = ("hello &amp;rarr; goodbye");
  </code></pre>
  
  <p>This is not outputting the arrow: "→" as it should.
  How does one escape that so it does?</p>