Remove HTML tags from POST and GET – PHP
April 6th, 2009
No comments
How to remove/Strip HTML tags from php $_POST variable:
foreach ($_POST as $key => $value) {
$_POST[$key] = addslashes(strip_tags($value));
}
foreach ($_GET as $key => $value) {
$_GET[$key] = addslashes(strip_tags($value));
}
strip_tags - tries to return a string with all HTML and PHP tags stripped from a ...
Categories: Bookmarks, Networking, PhP, Tech addslashes, code, GET, HTML tags, PhP, POST, Remove tags, Strip Tags, strip_tags








