This class provides the capability for removing unwanted HTML/XHTML, attributes from tags, and protocols contained in links. The net result is a much more powerful tool than the PHP internal strip_tags()
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
This upgrade provides the following:
Version number synced to procedural version number
PHPdoc style documentation has been added to the class. See http://www.phpdoc.org/ for more info.
Some methods are now deprecated due to nomenclature style change. See method documentation for specifics.
Kses4 now works in E_STRICT
Addition of methods AddProtocols(), filterKsestextHook(), RemoveProtocol(), RemoveProtocols() and SetProtocols()
Deprecated _hook(), Protocols()
Integrated code from kses 0.2.2 into class.
Tags:
author:
Richard R. Vásquez, Jr. (Original procedural code by Ulf Härnhammar)
Allows for additional user defined modifications to text.
This method allows for additional modifications to be performed on a string that's being run through Parse(). Currently, it returns the input string 'as is'.
This method is provided for users to extend the kses class for their own requirements.