API15:JMailHelper/cleanLine
From Joomla! Documentation
Description
Cleans single line inputs.
Template:Description:JMailHelper/cleanLine
Syntax
cleanLine($value)
| Parameter Name | Default Value | Description |
|---|---|---|
| $value | $value String to be cleaned. |
Returns
string Cleaned string.
Defined in
libraries/joomla/mail/helper.php
Importing
jimport( 'joomla.mail.helper' );
Source Body
function cleanLine( $value ) {
return trim( preg_replace( '/(%0A|%0D|\n+|\r+)/i', '', $value ) );
}
[Edit See Also] Template:SeeAlso:JMailHelper/cleanLine
Examples
<CodeExamplesForm />