One of my matrix cells for the caption/description is set to NONE formatting. Sometimes, editors will put in quote marks which confuses my html code. How do I convert any special chars like the qoute mark to html entities? A bit like PHP's htmlspecialchars or htmlentities.



1 Answer 1


I always do this with a simple plugin which runs unformatted text through EE/CodeIgniter's format_characters() method (though rather than use the plugin tag in my template, I usually select it as the formatting method for that field or Matrix column).

I've thrown it up on GitHub just now.

  • That's a nice approach, thanks for posting!
    – Dylan
    Jun 18, 2013 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.