I am new to a lot of the ASP.net MVC5 features. I wanted to know if there as a library that would automatically add the escape characters to a C# string that's intended to be output as html? Would HTMLAgility Pack be what I am looking for? Or is there soemthing built in that does it for you? May someone please let me know if I am using the right terminology?
var fileContents = System.IO.File.ReadAllText(Server.MapPath("~/Static/email.txt"))
the file contents would be:
<table width="600" cellpadding="0" cellspacing="0" style="background-color:black;">
the library would convert "filecontents" to:
"<table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" style=\"background-color:black;\">\n"