((string)dt.Rows[i][1]).Replace("'", "\\'")
I want the result, if any line has a quote, change it to a slash, for example. John's → John\'s
but the above replacement function is not working fine. it looks like John\\'s
but if we change the code to
((string)dt.Rows[i][1]).Replace("'", "\'")
he gives the result as John's
still change it.
Azhar
source share