convert &#039; to html character I have this code: 

$items[$k]-&gt;user-&gt;nome = $accounts[$item-&gt;uid]-&gt;field_nome['und'][0]['safe_value']." ".$accounts[$item-&gt;uid]-&gt;field_cognome['und'][0]['safe_value'];


And the output is this: 

L&amp;#039;itto Giovanni


But I want (in HTML)

L'itto Giovanni


in html head I have 

 &lt;meta charset="utf-8"&gt;


Where is my error?
"safe_value" is a "value", passed through the function _text_sanitize().

You can use php function html_entity_decode or use "value" instant of "safe_value". Differences between value and safe_value