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.
This commit is contained in:
Ryan Nowak 2015-09-14 11:58:38 -07:00
parent 7a24045953
commit 52cfdf75f2
1 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,14 @@ namespace Microsoft.AspNet.Html.Abstractions
/// <returns>The <see cref="IHtmlContentBuilder"/>.</returns>
IHtmlContentBuilder Append(string unencoded);
/// <summary>
/// Appends an HTML encoded <see cref="string"/> value. The value is treated as HTML encoded as-provided, and
/// no further encoding will be performed.
/// </summary>
/// <param name="content">The HTML encoded <see cref="string"/> to append.</param>
/// <returns>The <see cref="IHtmlContentBuilder"/>.</returns>
IHtmlContentBuilder AppendEncoded(string encoded);
/// <summary>
/// Clears the content.
/// </summary>