[eluser]theprodigy[/eluser]
I don't think there is a real good way around it without extending the DB class to add in a "protect submission" boolean.
The mysql_driver class contains a "escape_str" method that is used by the DB class method. The escape_str method uses php's native functions for
1. 'mysql_real_escape_string'
2. 'mysql_escape_string'
3. 'addslashes'
in that order depending on what is available. So really, it's not the DB class Like method doing the escaping. In order to get around it, you would have to extend the mysql_driver class to accept a boolean as to whether or not you want to protect the user submitted value.
NOTES:
* The escape_str method can be found in system/database/drivers/mysql/mysql_driver.php starting on line 285.
* The call to this method can be found in system/database/drivers/DB_driver.php, method escape_like_string line 705
* The call to escape_like_string method can be found in system/database/drivers/DB_active_record.php method _like line 697
* The call to _like method can be found in system/database/drivers/DB_active_record.php method like line 613