method

sanitize_sql_like

sanitize_sql_like(string, escape_character = "\\\\")
protected

Sanitizes a string so that it is safe to use within an SQL LIKE statement. This method uses escape_character to escape all occurrences of “", ”_“ and ”%“