How do i escape text for html use in C#? I want to do
sample=\"blah\"
and have
blah&l
You can use actual html tags and to output the string as is to show all of the tags in between the xmp tags.
Or you can also use on the server Server.UrlEncode or HttpUtility.HtmlEncode.
Server.UrlEncode
HttpUtility.HtmlEncode