I have code like this. Is there a way to make it easier to write and maintain? Using C# .NET 3.5.
string header(string title) { StringWriter s = new Stri
The most straight forward way is to use an XmlWriter object. This can be used to produce valid HTML and will take care of all of the nasty escape sequences for you.