From 52cfdf75f24059a54be5896e8c873741e5162026 Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Mon, 14 Sep 2015 11:58:38 -0700 Subject: [PATCH] Add AppendEncoded to the builder This is needed because a builder may have an optimized path for an unencoded string. There's also no 'common' encoded string implementation so it's much more straightforward to put this on the interface. --- .../IHtmlContentBuilder.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Microsoft.AspNet.Html.Abstractions/IHtmlContentBuilder.cs b/src/Microsoft.AspNet.Html.Abstractions/IHtmlContentBuilder.cs index 4b34f98bfb..0d558f2006 100644 --- a/src/Microsoft.AspNet.Html.Abstractions/IHtmlContentBuilder.cs +++ b/src/Microsoft.AspNet.Html.Abstractions/IHtmlContentBuilder.cs @@ -23,6 +23,14 @@ namespace Microsoft.AspNet.Html.Abstractions /// The . IHtmlContentBuilder Append(string unencoded); + /// + /// Appends an HTML encoded value. The value is treated as HTML encoded as-provided, and + /// no further encoding will be performed. + /// + /// The HTML encoded to append. + /// The . + IHtmlContentBuilder AppendEncoded(string encoded); + /// /// Clears the content. ///