title: Setting a button value to contain an ampersand coded character via JavaScript
body: <p>I'm trying to set a button value to be &laquo; (or &raquo;) via JavaScript with the following code:</p>
  
  <pre><code>document.getElementById('hideButton').value='&amp;laquo;';
  </code></pre>
  
  <p>This just sets the button text to <code>&amp;laquo;</code> rather than &laquo;.</p>
  
  <p>The HTML markup works fine (i.e. <code>&lt;input type="button" value="&amp;laquo;"&gt;</code>) giving the double left arrow quote on the button face.</p>
  
  <p>Is there some special way of escaping the ampersand code in JavaScript?</p>
  
  <p>Thanks,</p>
  
  <p>FM</p>