Oscar Fanelli
Oscar Fanelli

Reputation: 3657

Convert from html entity number to accented char

in this rss feed ( http://nightly.gamempire.it/rss ) you can visualize some html entity numbers (like à that will be converted to à if the encoding is utf-8).

However, this rss show à: how can I convert it to à? Is there a php function?

Upvotes: 0

Views: 198

Answers (1)

insertusernamehere
insertusernamehere

Reputation: 23580

You can use html_entity_decode

html_entity_decode('à', ENT_QUOTES, 'UTF-8');

Demo

Try before buy

Upvotes: 1

Related Questions