Aniket Narvankar

Aniket Narvankar

  • 558
  • 2.1k
  • 605.1k

C Sharp .Net Escape Sequences Issue

Jun 25 2020 10:14 AM
I have text stored in table in Sql
Following is the text content for example is
Text Content :- Click on the following link to visit google https://www.google.com
Now I want to return this message through api in my application,for this I am fetching this data and assigning to string varriable
 
example string message=dt.Rows[0][message].ToString(); (message is column name)
But when I am converting to string c sharp adds escape sequences for this //
 
For example message becomes 
Click on the following link to visit google https:/\/\ww.google.com
 
How should I prevent this?
Kindly help me on this 
 

Answers (1)