Convert a string to an escaped .NET System.String

Need to escape some html, xml or other type of content for use in f.ex. a .NET unit test, then this is the tool for you.