I have a php web sites in wich I can manages articles. On the Add a new article form, there is a rich-text-box (allows HTML input) that I\'d like to limit the character inpu
html_entity_decode only decodes HTML entities, it doesn't ignore HTML tags. Try:
html_entity_decode
strlen(strip_tags(html_entity_decode($string)));
Or the multi-byte equivalent:
mb_strlen(strip_tags(html_entity_decode($string)), 'auto');