From b73460ef9855b8162890da83b30607bd69b5fbc0 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 20 Dec 2004 01:36:39 +0000 Subject: [PATCH] r5: Removed from SVN. --- includes/functions_cleanhtml.php | 78 -------------------------------- 1 file changed, 78 deletions(-) delete mode 100644 includes/functions_cleanhtml.php diff --git a/includes/functions_cleanhtml.php b/includes/functions_cleanhtml.php deleted file mode 100644 index 483b5bd..0000000 --- a/includes/functions_cleanhtml.php +++ /dev/null @@ -1,78 +0,0 @@ -#isU', '', $text); - - // clean tags - $tagarray = array('img', 'a', 'strong', 'b', 'em', 'i', 'u', 's', 'br', 'p'); - foreach ($tagarray AS $tag) - { - $goodtags .= '<' . $tag . '>'; - } - - // remove js attributes - $text = preg_replace('#href=("|\'|")javascript:(.*?)\\1#i', 'href="ja"', $text); - - $text = strip_tags($text, $goodtags); - return $text; -} - -// ##################### Start process_safe_html ##################### -// this removes any attempts to use type things -function process_safe_html($text) -{ - //$text = preg_replace('#javascript#i', 'java script', $text); - $text = preg_replace('##isU', '', $text); - return $text; -} - -// ###################### Start process_all_html ##################### -// say goodbye to anything in a tag -function process_all_html($text) -{ - $text = preg_replace('##', '', $text); - $text = strip_tags($text); - return $text; -} - -// ##################### Start process_post_html ##################### -function process_post_html($text, $allowraw = 0, $allowsafe = 1) -{ - if ($allowraw) - { - return $text; - } - if ($allowsafe) - { - $text = process_raw_html($text); - return $text; - } - if (!$allow AND !$allowsafe) - { - $text = process_raw_html($text); - $text = process_all_html($text); - return $text; - } -} - -/*=====================================================================*\ -|| ################################################################### -|| # $HeadURL$ -|| # $Id$ -|| ################################################################### -\*=====================================================================*/ -?> \ No newline at end of file -- 2.22.5