title: Why is my jQuery code not able to read an apostrophe?
body: <p>I have a web form that automatically checks the checkboxes when the page loads based on the data stored in the MYSQL database. Everything works just fine with the exception of data that contains an apostrophe. Here's my code:</p>
  
  <p><strong>JSON:</strong> </p>
  
  <pre><code> [{"pkFavorietemerken":"1","merken":"Adidas"},{"pkFavorietemerken":"2","merken":"Boss"},{"pkFavorietemerken":"3","merken":"Burberry"},{"pkFavorietemerken":"4","merken":"Christian Dior"},{"pkFavorietemerken":"5","merken":"D&amp;G"},{"pkFavorietemerken":"6","merken":"Diesel"},{"pkFavorietemerken":"7","merken":"Dolce &amp; Gabanna"},{"pkFavorietemerken":"8","merken":"Emporio Armani"}]
  </code></pre>
  
  <p><strong>JQUERY:</strong></p>
  
  <pre><code>   $.getJSON("jason.php", function(data) {
  
        $.each(data, function(){
  
  
       $("[value='" + this.merken + "']").attr("checked","checked");
  
  
         });
  
     });
  </code></pre>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>    &lt;form name="form1" method="post" action="something.php"&gt;                        
      &lt;ul&gt;
          &lt;li&gt;&lt;input type="checkbox" name="merk[]" value="Adidas"/&gt;Adidas&lt;/li&gt;
          &lt;li&gt;&lt;input type="checkbox" name="merk[]" value="Airforce"/&gt;Airforce&lt;/li&gt;
          &lt;li&gt;&lt;input type="checkbox" name="merk[]" value="Armani"/&gt;Armani&lt;/li&gt;
          &lt;li&gt;&lt;input type="checkbox" name="merk[]" value="Asics"/&gt;Asics&lt;/li&gt;
          &lt;li&gt;&lt;input type="checkbox" name="merk[]" value="Bikkemberg"/&gt;Bikkemberg&lt;/li&gt;
          &lt;li&gt;&lt;input type="checkbox" name="merk[]" value="Bjorn Borg"/&gt;Bjorn Borg&lt;/li&gt;
          &lt;li&gt;&lt;input type="checkbox" name="merk[]" value="BlueBlood"/&gt;BlueBlood&lt;/li&gt;
          &lt;li&gt;&lt;input type="checkbox" name="merk[]" value="Boss"/&gt;Boss&lt;/li&gt;
          &lt;li&gt;&lt;input type="checkbox" name="merk[]" value="Brunotti"/&gt;Brunotti&lt;/li&gt;
          &lt;li&gt;&lt;input type="checkbox" name="merk[]" value="Burberry"/&gt;Burberry&lt;/li&gt;
      &lt;/ul&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>THIS DOESN'T WORK:</strong></p>
  
  <pre><code>    &lt;li&gt;&lt;input type="checkbox" name="merk[]" value="Levi's"/&gt;Levi's&lt;/li&gt;
  </code></pre>