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
|