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

protected by Community Nov 10 '18 at 10:39

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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