JDatabaseDriver::quote
Quotes and optionally escapes a string to database requirements for use in database queries.
Signature
public function quote(mixed
$text,
[boolean
$escape = true] )
Parameters
-
$text
- A string or an array of strings to quote.
-
$escape
- True (default) to escape the string, false to leave it unchanged.
Returns
- string
- The quoted input string.