Switch to: V12V11V10V9V8V7V6V5

quote()

Declaration

static VALUE escape_string( VALUE obj, VALUE inEscape )

Parameters

Name Description
inEscapeThe string that is to be escaped.

Description

This function will escape the unescaped_string, so that it is safe to place it in a query().

Return Values

Returns the escaped string.

Examples

Example 1.

item = "Zak's Laptop"
escaped_item = Valentina.quote(item)
printf "Escaped string: %s\n", escaped_item

The above example will output:

Escaped string: Zak\'s Laptop

See Also