JFilterInput::clean: Difference between revisions
From Joomla! Documentation
Betweenbrain (talk | contribs) |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
Method to be called by another php script. Processes for XSS and specified bad code. | Method to be called by another php script. Processes for XSS and specified bad code. | ||
<source lang="php"> | <source lang="php"> | ||
public function clean ( | public function clean ( | ||
| Line 40: | Line 38: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Filter|Filter]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Filter|Filter]] | ||
* [[API17:JFilterInput::clean|Other versions of JFilterInput::clean]] | * [[API17:JFilterInput::clean|Other versions of JFilterInput::clean]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JFilterInput::clean | category=JFilterInput::clean | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 03:02, 25 March 2017
JFilterInput::clean
Description
Method to be called by another php script. Processes for XSS and specified bad code.
public function clean (
$source
$type='string'
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $source | |||
| $type | 'string' |
- Returns
- Defined on line 131 of libraries/joomla/filter/filterinput.php
See also
JFilterInput::clean source code on BitBucket
Class JFilterInput
Subpackage Filter- Other versions of JFilterInput::clean
User contributed notes
Code Examples