Hi im looking for the best way to sanitize my acf wysiwyg fields and came across this HTMLPurifier. https://github.com/mewebstudio/Purifier does this work with sage?
At the moment I use wp_kses_post for sanitizing but I don’t know if that’s enough.
Well, wp_kses_post is already configured by WordPress with its allowed tags and attributes.
So when you aren’t sure what you need I guess the core wp_kses_post function should be enough?
I read through this comparison http://htmlpurifier.org/comparison and it looks like it isn’t the best practice option. but if it’s safe enough to use, I’ll stick with wp_kses_post.