I need to convert a string like this:
A 'quote' is <b>bold</b>
into:
A 'quote' is <b>bold</b>
html_entity_decode()
did not work.
Make sure you use the right quote_style:
html_entity_decode('A 'quote' is <b>bold</b>', ENT_QUOTES);
ENT_QUOTES Will convert both double and single quotes. (PHP Manual: html_entity_decode)