Filtering data is an important aspect of creating a secure website. Data coming from untrusted sources, such as the URL or a form, should always be filtered using the most restrictive filter possible for the situation.
JFilterInput class (
libraries/joomla/filter/filterinput.php) is used to provide the built-in filtering functionality in Joomla!. Table B.1 shows the filtering types that are available.
The HTML and STRING filter types both include HTML filtering. Two different types of filtering are available: white list and black list.
White list filtering allows ...