thanks, but as my initial post indicated, I allready know about strip_tags, but are after a more complex custom function.
* strip all tags unless spesified (strip tags can do this)
* strip all embed javascripts unless allowed on some attributes
code below looks promising, but as sych says in the last comment(in http://no2.php.net/strip_t
Main Topics
Browse All Topics





by: Ray_PaseurPosted on 2008-03-30 at 05:42:28ID: 21240496
strip_tags will do the job for you. If you want to keep, for example, the BOLD tag you would use this
$stripped - strip_tags($html, <b>);
You can also do something like this:
$no_script = eregi_replace('< ?script', '<X-NO-SCRIPT', $html);