55using System . Diagnostics ;
66using System . Globalization ;
77using System . IO ;
8- using System . Text ;
98using Microsoft . Extensions . WebEncoders ;
109
1110namespace Microsoft . AspNet . Html . Abstractions
@@ -20,6 +19,7 @@ public static class HtmlContentBuilderExtensions
2019 /// item with the HTML encoded <see cref="string"/> representation of the corresponding item in the
2120 /// <paramref name="args"/> array.
2221 /// </summary>
22+ /// <param name="builder">The <see cref="IHtmlContentBuilder"/>.</param>
2323 /// <param name="format">
2424 /// The composite format <see cref="string"/> (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx).
2525 /// The format string is assumed to be HTML encoded as-provided, and no further encoding will be performed.
@@ -54,9 +54,10 @@ public static IHtmlContentBuilder AppendFormat(
5454
5555 /// <summary>
5656 /// Appends the specified <paramref name="format"/> to the existing content with information from the
57- /// <paramref name="provider "/> after replacing each format item with the HTML encoded <see cref="string"/>
58- /// representation of the corresponding item in the <paramref name="args"/> array.
57+ /// <paramref name="formatProvider "/> after replacing each format item with the HTML encoded
58+ /// <see cref="string"/> representation of the corresponding item in the <paramref name="args"/> array.
5959 /// </summary>
60+ /// <param name="builder">The <see cref="IHtmlContentBuilder"/>.</param>
6061 /// <param name="formatProvider">An object that supplies culture-specific formatting information.</param>
6162 /// <param name="format">
6263 /// The composite format <see cref="string"/> (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx).
@@ -122,9 +123,9 @@ public static IHtmlContentBuilder AppendLine(this IHtmlContentBuilder builder, s
122123 /// <param name="builder">The <see cref="IHtmlContentBuilder"/>.</param>
123124 /// <param name="content">The <see cref="IHtmlContent"/> to append.</param>
124125 /// <returns>The <see cref="IHtmlContentBuilder"/>.</returns>
125- public static IHtmlContentBuilder AppendLine ( this IHtmlContentBuilder builder , IHtmlContent htmlContent )
126+ public static IHtmlContentBuilder AppendLine ( this IHtmlContentBuilder builder , IHtmlContent content )
126127 {
127- builder . Append ( htmlContent ) ;
128+ builder . Append ( content ) ;
128129 builder . Append ( HtmlEncodedString . NewLine ) ;
129130 return builder ;
130131 }
@@ -134,11 +135,11 @@ public static IHtmlContentBuilder AppendLine(this IHtmlContentBuilder builder, I
134135 /// The value is treated as HTML encoded as-provided, and no further encoding will be performed.
135136 /// </summary>
136137 /// <param name="builder">The <see cref="IHtmlContentBuilder"/>.</param>
137- /// <param name="content ">The HTML encoded <see cref="string"/> to append.</param>
138+ /// <param name="encoded ">The HTML encoded <see cref="string"/> to append.</param>
138139 /// <returns>The <see cref="IHtmlContentBuilder"/>.</returns>
139- public static IHtmlContentBuilder AppendLineEncoded ( this IHtmlContentBuilder builder , string encoded )
140+ public static IHtmlContentBuilder AppendHtmlLine ( this IHtmlContentBuilder builder , string encoded )
140141 {
141- builder . AppendEncoded ( encoded ) ;
142+ builder . AppendHtml ( encoded ) ;
142143 builder . Append ( HtmlEncodedString . NewLine ) ;
143144 return builder ;
144145 }
@@ -148,7 +149,7 @@ public static IHtmlContentBuilder AppendLineEncoded(this IHtmlContentBuilder bui
148149 /// and will be HTML encoded before writing to output.
149150 /// </summary>
150151 /// <param name="builder">The <see cref="IHtmlContentBuilder"/>.</param>
151- /// <param name="value ">The <see cref="string"/> value that replaces the content.</param>
152+ /// <param name="unencoded ">The <see cref="string"/> value that replaces the content.</param>
152153 /// <returns>The <see cref="IHtmlContentBuilder"/>.</returns>
153154 public static IHtmlContentBuilder SetContent ( this IHtmlContentBuilder builder , string unencoded )
154155 {
@@ -161,7 +162,7 @@ public static IHtmlContentBuilder SetContent(this IHtmlContentBuilder builder, s
161162 /// Sets the content to the <see cref="IHtmlContent"/> value.
162163 /// </summary>
163164 /// <param name="builder">The <see cref="IHtmlContentBuilder"/>.</param>
164- /// <param name="value ">The <see cref="IHtmlContent"/> value that replaces the content.</param>
165+ /// <param name="content ">The <see cref="IHtmlContent"/> value that replaces the content.</param>
165166 /// <returns>The <see cref="IHtmlContentBuilder"/>.</returns>
166167 public static IHtmlContentBuilder SetContent ( this IHtmlContentBuilder builder , IHtmlContent content )
167168 {
@@ -175,12 +176,12 @@ public static IHtmlContentBuilder SetContent(this IHtmlContentBuilder builder, I
175176 /// no further encoding will be performed.
176177 /// </summary>
177178 /// <param name="builder">The <see cref="IHtmlContentBuilder"/>.</param>
178- /// <param name="content ">The HTML encoded <see cref="string"/> that replaces the content.</param>
179+ /// <param name="encoded ">The HTML encoded <see cref="string"/> that replaces the content.</param>
179180 /// <returns>The <see cref="IHtmlContentBuilder"/>.</returns>
180- public static IHtmlContentBuilder SetContentEncoded ( this IHtmlContentBuilder builder , string encoded )
181+ public static IHtmlContentBuilder SetHtmlContent ( this IHtmlContentBuilder builder , string encoded )
181182 {
182183 builder . Clear ( ) ;
183- builder . AppendEncoded ( encoded ) ;
184+ builder . AppendHtml ( encoded ) ;
184185 return builder ;
185186 }
186187
0 commit comments