Table of Contents
quote()
Declaration
static VALUE escape_string( VALUE obj, VALUE inEscape )
Parameters
Name | Description | |
---|---|---|
inEscape | The 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