One of them:
string html = "<a href=\"http://google.com\">Test</a>";
string html = @"<a href=""http://google.com"">Test</a>";
Evasion varies between two forms. The second, with the prefix "@", is known as a literal string literal , allows line breaks, etc. And does not consider the backslash as a special escape character. Thus, it processes everything except the double quote without the need for escaping - and the double quote escapes, doubling it, so it is not interpreted as the end of a string literal.
source
share