note 16032 deleted from function.htmlspecialchars by irc-html

From: Date: Sun, 30 Dec 2001 07:29:43 +0000
Subject: note 16032 deleted from function.htmlspecialchars by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23967@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);

« previous php.notes (#23967) next »