String escape(String val)
Arguments
val: The String to escape
Usage
Escapes backslashes, apostrophes and quotes in a string to protect against SQL injection attacks. This function should be used only as a last resort - prepared statements using prepare and execPrepared are supported by all database libraries, and are far less prone to human error.
This function will escape Tainted strings, returning an untainted string.