Replace &#39; and similar html codes with their correspondent character?
<p>so I have a string that goes like this:</p>

<pre><code>$string = "This is a test string. It has characters like these: &amp;#39;";
</code></pre>

<p>Is there a php function that transforms these to their correspondent character, in my example the desired output would be:</p>

<pre><code>print $string
// OUTPUT: This is a test string. It has characters like these: '
</code></pre>
