diff --git a/src/Microsoft.AspNet.Html.Abstractions/HtmlContentBuilder.cs b/src/Microsoft.AspNet.Html.Abstractions/HtmlContentBuilder.cs
index 34e59d331841..10a50cb34de1 100644
--- a/src/Microsoft.AspNet.Html.Abstractions/HtmlContentBuilder.cs
+++ b/src/Microsoft.AspNet.Html.Abstractions/HtmlContentBuilder.cs
@@ -67,7 +67,7 @@ public IHtmlContentBuilder Append(string unencoded)
}
///
- public IHtmlContentBuilder Append(IHtmlContent htmlContent)
+ public IHtmlContentBuilder AppendHtml(IHtmlContent htmlContent)
{
if (htmlContent == null)
{
diff --git a/src/Microsoft.AspNet.Html.Abstractions/HtmlContentBuilderExtensions.cs b/src/Microsoft.AspNet.Html.Abstractions/HtmlContentBuilderExtensions.cs
index 5d0b82dd5e96..2ff745cdf3bb 100644
--- a/src/Microsoft.AspNet.Html.Abstractions/HtmlContentBuilderExtensions.cs
+++ b/src/Microsoft.AspNet.Html.Abstractions/HtmlContentBuilderExtensions.cs
@@ -48,7 +48,7 @@ public static IHtmlContentBuilder AppendFormat(
throw new ArgumentNullException(nameof(args));
}
- builder.Append(new HtmlFormatString(format, args));
+ builder.AppendHtml(new HtmlFormatString(format, args));
return builder;
}
@@ -88,7 +88,7 @@ public static IHtmlContentBuilder AppendFormat(
throw new ArgumentNullException(nameof(args));
}
- builder.Append(new HtmlFormatString(formatProvider, format, args));
+ builder.AppendHtml(new HtmlFormatString(formatProvider, format, args));
return builder;
}
@@ -104,7 +104,7 @@ public static IHtmlContentBuilder AppendLine(this IHtmlContentBuilder builder)
throw new ArgumentNullException(nameof(builder));
}
- builder.Append(HtmlEncodedString.NewLine);
+ builder.AppendHtml(HtmlEncodedString.NewLine);
return builder;
}
@@ -123,7 +123,7 @@ public static IHtmlContentBuilder AppendLine(this IHtmlContentBuilder builder, s
}
builder.Append(unencoded);
- builder.Append(HtmlEncodedString.NewLine);
+ builder.AppendHtml(HtmlEncodedString.NewLine);
return builder;
}
@@ -140,8 +140,8 @@ public static IHtmlContentBuilder AppendLine(this IHtmlContentBuilder builder, I
throw new ArgumentNullException(nameof(builder));
}
- builder.Append(content);
- builder.Append(HtmlEncodedString.NewLine);
+ builder.AppendHtml(content);
+ builder.AppendHtml(HtmlEncodedString.NewLine);
return builder;
}
@@ -160,7 +160,7 @@ public static IHtmlContentBuilder AppendHtmlLine(this IHtmlContentBuilder builde
}
builder.AppendHtml(encoded);
- builder.Append(HtmlEncodedString.NewLine);
+ builder.AppendHtml(HtmlEncodedString.NewLine);
return builder;
}
@@ -197,7 +197,7 @@ public static IHtmlContentBuilder SetContent(this IHtmlContentBuilder builder, I
}
builder.Clear();
- builder.Append(content);
+ builder.AppendHtml(content);
return builder;
}
diff --git a/src/Microsoft.AspNet.Html.Abstractions/IHtmlContentBuilder.cs b/src/Microsoft.AspNet.Html.Abstractions/IHtmlContentBuilder.cs
index de4b9ebd9085..6b0a6d657148 100644
--- a/src/Microsoft.AspNet.Html.Abstractions/IHtmlContentBuilder.cs
+++ b/src/Microsoft.AspNet.Html.Abstractions/IHtmlContentBuilder.cs
@@ -13,7 +13,7 @@ public interface IHtmlContentBuilder : IHtmlContent
///
/// The to append.
/// The .
- IHtmlContentBuilder Append(IHtmlContent content);
+ IHtmlContentBuilder AppendHtml(IHtmlContent content);
///
/// Appends a value. The value is treated as unencoded as-provided, and will be HTML
diff --git a/test/Microsoft.AspNet.Html.Abstractions.Test/HtmlContentBuilderExtensionsTest.cs b/test/Microsoft.AspNet.Html.Abstractions.Test/HtmlContentBuilderExtensionsTest.cs
index 9355d507d350..ff201b494c54 100644
--- a/test/Microsoft.AspNet.Html.Abstractions.Test/HtmlContentBuilderExtensionsTest.cs
+++ b/test/Microsoft.AspNet.Html.Abstractions.Test/HtmlContentBuilderExtensionsTest.cs
@@ -374,7 +374,7 @@ public IHtmlContentBuilder Append(string unencoded)
return this;
}
- public IHtmlContentBuilder Append(IHtmlContent content)
+ public IHtmlContentBuilder AppendHtml(IHtmlContent content)
{
Entries.Add(content);
return this;
diff --git a/test/Microsoft.AspNet.Html.Abstractions.Test/HtmlContentBuilderTest.cs b/test/Microsoft.AspNet.Html.Abstractions.Test/HtmlContentBuilderTest.cs
index 4eee28e21971..c9eda50adc2c 100644
--- a/test/Microsoft.AspNet.Html.Abstractions.Test/HtmlContentBuilderTest.cs
+++ b/test/Microsoft.AspNet.Html.Abstractions.Test/HtmlContentBuilderTest.cs
@@ -65,7 +65,7 @@ public void AppendIHtmlContent_AppendsAsIs()
var writer = new StringWriter();
// Act
- content.Append(new TestHtmlContent("Hello"));
+ content.AppendHtml(new TestHtmlContent("Hello"));
// Assert
var result = Assert.Single(content.Entries);
@@ -81,7 +81,7 @@ public void CanAppendMultipleItems()
var content = new HtmlContentBuilder();
// Act
- content.Append(new TestHtmlContent("hello"));
+ content.AppendHtml(new TestHtmlContent("hello"));
content.Append("Test");
// Assert
@@ -95,7 +95,7 @@ public void Clear_DeletesAllItems()
{
// Arrange
var content = new HtmlContentBuilder();
- content.Append(new TestHtmlContent("hello"));
+ content.AppendHtml(new TestHtmlContent("hello"));
content.Append("Test");
// Act
@@ -111,7 +111,7 @@ public void WriteTo_WritesAllItems()
// Arrange
var content = new HtmlContentBuilder();
var writer = new StringWriter();
- content.Append(new TestHtmlContent("Hello"));
+ content.AppendHtml(new TestHtmlContent("Hello"));
content.Append("Test");
// Act