/// <summary> /// Creates an HTML block-quote. /// </summary> /// <param name="quote">The quote.</param> /// <param name="author">The author.</param> /// <param name="source">The source.</param> /// <param name="sourceTitle"> /// The <paramref name="source" /> title. /// </param> /// <param name="isPulledRight"> /// Set to <see langword="true" /> for a floated, right-aligned /// blockquote. /// </param> public MvcHtmlString BlockQuote(string quote, string author, string source, string sourceTitle, bool isPulledRight) { var blockquote = new TagBuilderExt("blockquote"); if (isPulledRight) { blockquote.AddCssClass("pull-right"); } var cite = new TagBuilderExt("cite", source); cite.MergeAttribute("title", sourceTitle); blockquote.CreateChildTag("p", quote); blockquote.CreateChildTag("small").InnerHtml = String.Concat(author, " ", cite.ToString()); return(blockquote.ToMvcHtmlString()); }