PHP: Decoding Html Entities

Viewed 14064

I want to decode html entities using php html_entity_decode() but my html entities seem incompatible with the function.

Example Input String: html_entity_decode('<strong>');
Outputs: <strong>

Removing the 'amp;' solves the problem and produces <strong> but my file has 'amp;' before every html entity. A mass removal of amp; would probably solve the problem, but also very destructive to the html. Is it possible to convert my entities with this situation of an extra amp; before all entities?

1 Answers
Related