Example #1
0
 public static string EscapeStringWithEndingNewLine(this string text, string NewLineReplacment = null)
 {
     StringBuilder sb = new StringBuilder();
     sb.EscapeString(text, true, true, NewLineReplacment);
     return sb.ToString();
 }
Example #2
0
 public static string EscapeStringWithOutQuotes(this string text, string NewLineReplacment = null)
 {
     StringBuilder sb = new StringBuilder();
     sb.EscapeString(text, false, false, NewLineReplacment);
     return sb.ToString();
 }