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:
parent
7a24045953
commit
52cfdf75f2
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue