title: Accents and HTML entities in jQuery
body: <p>So I've got a JSON file (pulled in from an API) where I'm doing some comparisons. I fetch the content of the JSON file and put it on some buttons (as button text). I then do a comparison test for equality between the button text and text in the JSON file. </p>
  
  <p>This works in 99% of my use cases however:</p>
  
  <p>Some words in my JSON file have accents on them (either é or so on). When I try and do a comparison in jQuery, even though I'm using the:</p>
  
  <pre><code>   $(this).html()
  </code></pre>
  
  <p>for my button text, the equality test fails. The word in the JSON File might read:</p>
  
  <pre><code>   Fr&amp;eacute;d&amp;eacute;ric Auguste Bartholdi 
  </code></pre>
  
  <p>but on my button it reads:</p>
  
  <pre><code>    Frédéric Auguste Bartholdi
  </code></pre>
  
  <p>I thought if I did a comparison test such as:</p>
  
  <pre><code>    if($(this).html() === jsonFile[0])){...}
  </code></pre>
  
  <p>that would do the trick, but it doesn't seem to do it. For clarity (this) refers to my button and I can't really do much about the JSON file - can't be changed.</p>
  
  <p>Does anyone have any ideas?</p>