Sunday, 1 May 2016

c# - Double quotes inside string HTML




I want to store this:



m



in a string. How do I do this?



Tried: @"m";



Tried: @"m";



Please help!


Answer




use single quotes, instead.



var html = "m";


or double the quotes in a literal string



var html = @"m";



or escape the quote characters with the backslash character



var html = "m";

No comments:

Post a Comment