JFilterInput

API Package Subpackage Class Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Filter Class JFilterInput Reference JFilterInput Never Work in Progress

JFilterInout is a class for filtering input from any data source<p>Forked from the php input filter library by: Daniel Morris &lt;dan@rootcube.com&gt; Original Contributors: Gianpaolo Racca, Ghislain Picard, Marco Wandschneider, Chris Tobin and Andrew Eddie.</p>

Methods

Method Description
__construct Constructor for inputFilter class. Only first parameter is required.
checkAttribute Function to determine if contents of an attribute is safe
clean Method to be called by another php script. Processes for XSS and specified bad code.
getInstance Returns a reference to an input filter object, only creating it if it doesn’t already exist.<p>This method must be invoked as: <pre> $filter = & JFilterInput::getInstance();</pre></p>
_cleanAttributes Internal method to strip a tag of certain attributes
_cleanTags Internal method to strip a string of certain tags
_decode Try to convert to plaintext
_remove Internal method to iteratively remove all unwanted tags and attributes