Check out example codes for "c# handle single quote inside string". It will help you in understanding the concepts better.

Code Example 1

s = s.Replace("'", "\\'")

Learn ReactJs, React Native from akashmittal.com