/ Published in: C#
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public static class StringExt { public static string AsText(this string source) { if (null == source) return "null"; const string doubleQuotes = "\""; return string.Concat(doubleQuotes, source, doubleQuotes); } }
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)