0

I have this code:

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

And the output is this:

L'itto Giovanni

But I want (in HTML)

L'itto Giovanni

in html head I have

 <meta charset="utf-8">

Where is my error?

3

"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

Not the answer you're looking for? Browse other questions tagged or ask your own question.