[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/data/ -> kses.class.php (sommaire)

(pas de description)

Poids: 762 lignes (26 kb)
Inclus ou requis:0 fois
Référencé: 1 fois
Nécessite: 0 fichiers

Définit 1 class

kses:: (24 méthodes):
  kses()
  Parse()
  Protocols()
  AddProtocol()
  AddHTML()
  _no_null()
  _js_entities()
  _normalize_entities()
  _tmp()
  _normalize_entities2()
  _hook()
  _array_lc()
  _split()
  _split2()
  _attr()
  _hair()
  _bad_protocol()
  _bad_protocol_once()
  _bad_protocol_once2()
  _check_attr_val()
  _stripslashes()
  _html_error()
  _decode_entities()
  _version()


Classe: kses  - X-Ref

\ingroup Data

This is a fork of a slick piece of procedural code called 'kses' written by Ulf Harnhammar
The entire set of functions was wrapped in a PHP object with some internal modifications
by Richard Vasquez (http://www.chaos.org/) 7/25/2003

The pLog project has made a few improvements to the code, for example including a mode where
the filter can convert invalid XHTML code into valid markup, as well as a more aggressive
filtering mode.

The original (procedural) version of the code can be found at:
http://sourceforge.net/projects/kses/

[kses strips evil scripts!]

==========================================================================================

class.kses.php 0.0.2 - PHP class that filters HTML/XHTML only allowing some elements and
attributes to be passed through.

Copyright (C) 2003 Richard R. Vasquez, Jr.

Derived from kses 0.2.1 - HTML/XHTML filter that only allows some elements and attributes
Copyright (C) 2002, 2003  Ulf Harnhammar

==========================================================================================

This program is free software and open source software; you can redistribute
it and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  or visit
http://www.gnu.org/licenses/gpl.html

==========================================================================================
CONTACT INFORMATION:

Email:    View current valid email address at http://www.chaos.org/contact/
kses( $xhtmlConverterOnly = false, $aggressiveMode = false )   X-Ref
constructor

param: xhtmlConverterOnly Whether we're using the class for converting only to
param: aggressiveMode When the xhtml mode is enabled, it will try to be more aggressive as to

Parse($string = "")   X-Ref
Pas de description

Protocols()   X-Ref
Pas de description

AddProtocol($protocol = "")   X-Ref
Pas de description

AddHTML($tag = "", $attribs = array()   X-Ref
Pas de description

_no_null($string)   X-Ref
Pas de description

_js_entities($string)   X-Ref
Pas de description

_normalize_entities($string)   X-Ref
Pas de description

_tmp($string)   X-Ref
Pas de description

_normalize_entities2($i)   X-Ref
Pas de description

_hook($string)   X-Ref
Pas de description

_array_lc($inarray)   X-Ref
Pas de description

_split($string)   X-Ref
Pas de description

_split2($string)   X-Ref
Pas de description

_attr($element, $attr)   X-Ref
Pas de description

_hair($attr)   X-Ref
Pas de description

_bad_protocol($string)   X-Ref
Pas de description

_bad_protocol_once($string)   X-Ref
Pas de description

_bad_protocol_once2($string)   X-Ref
Pas de description

_check_attr_val($value, $vless, $checkname, $checkvalue)   X-Ref
Pas de description

_stripslashes($string)   X-Ref
Pas de description

_html_error($string)   X-Ref
Pas de description

_decode_entities($string)   X-Ref
Pas de description

_version()   X-Ref
Pas de description



Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics