title: html_entity_decode not working properly
body: <p>I'm using html_entity_decode to decode html codes, and then using preg_replace, but for some reason it's replacing all my single quotes for some reason. What am I doing wrong?</p>
  
  <pre><code>&lt;?php
  
  $userResponse = "I&amp;#039;m tired.";
  $userResponse = html_entity_decode($userResponse); //make codes like &amp;#039; into '
  $userResponse = preg_replace("~[^*a-zA-Z,.!?' ]~", "", $userResponse);
  echo $userResponse;
  
  ?&gt;
  </code></pre>
  
  <p><b> Result: </b> Im tired.</p>
  
  <p><b> Expected Result: </b> I'm tired.</p>