note 16032 added to function.htmlspecialchars

From: Date: Sat, 13 Oct 2001 14:23:15 +0000
Subject: note 16032 added to function.htmlspecialchars
Groups: php.notes 
Request: Send a blank email to php-notes+get-18878@lists.php.net to get a copy of this message
You also could use this code to strip all HTML tags from a file ($contents contains the contents of the file... ofcourse ;o)) : do { $klIndex = strpos($contents, "<"); if ($klIndex!==false) { $grIndex = strpos($contents, ">", $klIndex); if ($grIndex!==false) $contents = substr($contents, 0, $klIndex) . substr($contents, $grIndex+1); else $contents = substr($contents, 0, $klIndex); } } while ($klIndex!==false); -- http://www.php.net/manual/en/function.htmlspecialchars.php http://master.php.net/manage/user-notes.php?action=edit+16032 http://master.php.net/manage/user-notes.php?action=delete+16032 http://master.php.net/manage/user-notes.php?action=reject+16032

« previous php.notes (#18878) next »