function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sandeep Rahul 3Sandeep Rahul 3 

What is the use of String.escapeSingleQuotes() method?

SwethaSwetha (Salesforce Developers) 
HI Sandeep,

This method Returns a String with the escape character (\) added before any single quotation marks in the String s.

More information here: https://developer.salesforce.com/docs/atlas.en-us.216.0.apexcode.meta/apexcode/apex_methods_system_string.htm
 
Hope this helps you. Please mark this answer as best so that others facing the
same issue will find this information useful.
 
Thank you
sachinarorasfsachinarorasf
Hi Sandeep,

Please go through the below link.

http://hellosnl.blogspot.com/search/label/escapeSingleQuotes

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Sachin Arora
www.sachinsf.com