From 07155a084db111c0586ce7ed958c87eed6116704 Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 17 Apr 2009 15:41:16 +0000 Subject: Closes #833: Kses now built as module git-svn-id: https://code.elgg.org/elgg/trunk@3222 36083f99-b078-4883-b0ff-0f9b5a30f544 --- vendors/kses/examples/filter.php | 138 --------------------------------------- 1 file changed, 138 deletions(-) delete mode 100644 vendors/kses/examples/filter.php (limited to 'vendors/kses/examples/filter.php') diff --git a/vendors/kses/examples/filter.php b/vendors/kses/examples/filter.php deleted file mode 100644 index 9a026795b..000000000 --- a/vendors/kses/examples/filter.php +++ /dev/null @@ -1,138 +0,0 @@ - array(), - 'i' => array(), - 'a' => array('href' => array('minlen' => 3, 'maxlen' => 50), - 'title' => array('valueless' => 'n')), - 'p' => array('align' => 1, - 'dummy' => array('valueless' => 'y')), - 'img' => array('src' => 1), # FIXME - 'font' => array('size' => - array('minval' => 4, 'maxval' => 20)), - 'br' => array()); - -$val = $_POST['val']; -if (get_magic_quotes_gpc()) - $val = stripslashes($val); - -# *** PRINT SOME HTML CODE *** - -?> - - - -kses example: HTML filter - - - - - - -

Input

- -
- - -

Output

- -
- - -

Type something

- -
- -
- -
- - -

-Only the following HTML elements and attributes are allowed: -

- -

- $htmlval) -{ - if (!$first) - echo ' '; - $first = 0; - - echo "<$htmlkey"; # element - - foreach ($htmlval as $html2key => $html2val) - echo " $html2key="; # attribute - - echo ">"; -} - -?> - -

- -

-<a href=> must have a length in the range 3 to 50.
-<a title=> must not be valueless.
-<p dummy> must be valueless.
-<font size=> must have a value in the range 4 to 20.
-Only the URL protocols "http" and "https" are allowed. -

- - - -- cgit v1.2.3