public static string CreateCommandStart(string command, bool disableStyle, string quotes, bool rawMode) { string style = ""; if (disableStyle) { style = String.Format(CleanLink, quotes); } if (rawMode) { return(String.Format(CommandLink, quotes, command, style)); } else { return(String.Format(CommandLink, quotes, HTML.EscapeString(command), style)); } }
/// <summary> /// Appends text and escapes it /// </summary> /// <param name="text">Text to append</param> public void AppendString(string text) { this._builder.Append(HTML.EscapeString(text)); }