1 2 3 4 5 6 7 8 |
$a = $_POST[$key]; // $a = urldecode($a); $a = mb_convert_encoding($a, 'UTF-8'); $a = strip_tags($a, '<title><h1><h2><h3><h4><h5><h6><hr><hr/><br><br/><p><center><div><pre><span><blockquote><address><font><i><tt><b><u><strike><big><small><sub><sup><em><strong><code><ul><ol><li><dl><dt><dd><table><tbody><tr><th><td><caption><a><img><img/>'); // ENT_IGNORE >= PHP5.3, ENT_SUBSTITUTE >= PHP5.4 $a = htmlentities($a, ENT_QUOTES, 'UTF-8'); $a = sanitize_text_field($a); return $a; |