Table of Contents

getEscaped

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Database Class JDatabase Method getEscaped Reference getEscaped() Never Work in Progress

Escapes characters with special meaning for the database.

Syntax

string getEscaped ( $text )

$text string is a string that is to be escaped.

Examples

Example

$database =& JFactory::getDBO();
$text = "What's my line?";
echo $database->getEscaped( $text );

will produce:

Result

What\'s my line?