I have the following HTML code:
<P>Notes: Mails: <BR> 1. <A href="mailto:example@mail.com">example@mail.com</A></P>
and of course when I try to pass it to string it gives me error:
string s = "<P>Notes: Mails: <BR> 1. <A href="mailto:example@mail.com">example@mail.com</A></P>";
Is there a way I could just take that HTML and convert it to a .NET equivalent, preferably without changing the format?
thanks in advance.
It looks like you just have to escape the quotes:
In C#
"denotes the beginning or end of a string, to use a"inside a string you need to ‘escape’ it like this\". You may also use verbatim string literals of the format