JDatabaseQuery::escape

Method to escape a string for usage in an SQL statement.

This method is provided for use where the query object is passed to a function for modification. If you have direct access to the database object, it is recommended you use the escape method directly. Note that 'e' is an alias for this method as it is in JDatabaseDriver.