sanitize_post() is not sanitizing Post Object

Solution:

sanitize_post is coming with “display” default filter option. And it does not sanitize tags.

But if you tries a code like this:

 $sanitizer = function($post){
 return sanitize_post($post, "db"); // or "edit"
};

array_map($sanitizer, $data["post"]);

Now it sanitizes fields against XSS!

enter image description here

deneme bonusudeneme bonusu veren sitelerpulibet girişOnwin Güncel Giriştürkçe altyazılı pornocanlı bahis casino