title: PHP - html_entity_decode not decoding everything
body: <p>I am parsing an HTML page. At some point I am getting the text between a div and using 
  html_entity_decode to print that text.</p>
  
  <p>The problem is that the page contains characters like this star <code>★</code> or others like shapes like ⬛︎, ◄, ◉, etc. I have checked and these characters are not encoded on the source page, they are like you see them normally.</p>
  
  <p>The page is using charset="UTF-8"</p>
  
  <p>So, when I use </p>
  
  <pre><code>html_entity_decode($string, ENT_QUOTES, 'UTF-8');
  </code></pre>
  
  <p>The star, for example, is "decoded" to  <code>â˜</code></p>
  
  <p>$string is being obtained by using </p>
  
  <pre><code>document.getElementById("id-of-div").innerText
  </code></pre>
  
  <p>I would like to decode them correctly. How do I do that in PHP?</p>
  
  <p>NOTE: I have tried <code>htmlspecialchars_decode($string, ENT_QUOTES);</code> and it produces the same result.</p>