Welcome! » Log In » Create A New Profile

Emulate Drupal function check_plain ()

Posted by counterpoint 
Emulate Drupal function check_plain ()
August 26, 2008 11:28AM

Can HTML Purifier be used to easily emulate the Drupal check_plain() function? If so, what is required?

Re: Emulate Drupal function check_plain ()
August 26, 2008 07:18PM

All you need is HTMLPurifier_Encoder::cleanUTF8() along with htmlspecialchars().

Sorry, you do not have permission to post/reply in this forum.