I have a query string that is as follows(no bulkification required)...
String qryString = 'SELECT Id FROM Contact WHERE (IsDeleted = false and Name like \'%' + searchText+ '%\')';
searchText is a text input field. This code is prone to SOQL Injection because of the apostrophe. So how to make it safe?
Any suggestions will be helpful.