| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Database |
JDatabase |
getEscaped |
getEscaped() |
Never | Work in Progress |
Escapes characters with special meaning for the database.
string getEscaped ( $text )
| $text | string | is a string that is to be escaped. |
Example
$database =& JFactory::getDBO(); $text = "What's my line?"; echo $database->getEscaped( $text );
will produce:
Result
What\'s my line?