is there a way how to convert HTML entities to their applicable characters. Something similar to html_entity_decode()?
I’m trying to make ordinary text without HTML entities from TinyMCE output.
is there a way how to convert HTML entities to their applicable characters. Something
Share
According to the user contributed notes in the manual,
html_entity_decode()seems indeed to convert only some 100 entities instead of the over 200 that exist in the spec.There’s a script named
html_entity_decode_fullthat seems to provide decoding for all entities, but the original author’s site is down. Here‘s a link to a Drupal repository that contains the function. This will convert all entities: