Welcome! » Log In » Create A New Profile

equivalent of filter_var($some_variable, FILTER_SANITIZE_SPECIAL_CHARS)

Posted by manishb 
equivalent of filter_var($some_variable, FILTER_SANITIZE_SPECIAL_CHARS)
December 24, 2017 06:18AM

I need to filter a few inputs using HTMLPurifier but am unable to find the equivalent of filter_var($some_variable, FILTER_SANITIZE_SPECIAL_CHARS) in HTMLPurifier. Do you know?

Re: equivalent of filter_var($some_variable, FILTER_SANITIZE_SPECIAL_CHARS)
January 07, 2018 11:54PM

HTML Purifier has no integration with PHP's filter_ functions; you will have to implement it yourslef.

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