note 1634 modified in function.strip-tags by philip

From: Date: Fri, 21 Sep 2001 15:43:42 +0000
Subject: note 1634 modified in function.strip-tags by philip
Groups: php.notes 
Request: Send a blank email to php-notes+get-18146@lists.php.net to get a copy of this message
Regarding strip_tags(), the following seems to work pretty well as a substitute : <pre> $userMessage = ereg_replace('<([^>]|\n)*>', '', $userMessage); </pre> [ed. list solid alternatives to strip_tags()] http://www.php.net/manual/en/function.strip-tags.php

« previous php.notes (#18146) next »