示例#1
0
文件: HTML.cs 项目: deathlef/VhaBot
        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));
            }
        }
示例#2
0
 /// <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));
 }