Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Commit a8839f7

Browse files
committed
Rename AppendEncoded() to AppendHtml()
- aspnet/Mvc#3225, 2 of 3
1 parent 6a7082d commit a8839f7

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Microsoft.AspNet.Razor.Runtime/TagHelpers/DefaultTagHelperContent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ public override TagHelperContent Append(string value)
128128
return this;
129129
}
130130

131-
public override TagHelperContent AppendEncoded(string value)
131+
public override TagHelperContent AppendHtml(string value)
132132
{
133-
Buffer.AppendEncoded(value);
133+
Buffer.AppendHtml(value);
134134
return this;
135135
}
136136

src/Microsoft.AspNet.Razor.Runtime/TagHelpers/TagHelperContent.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public TagHelperContent SetContentEncoded(string encoded)
8787
/// </summary>
8888
/// <param name="value">The <see cref="string"/> to be appended.</param>
8989
/// <returns>A reference to this instance after the append operation has completed.</returns>
90-
public abstract TagHelperContent AppendEncoded(string value);
90+
public abstract TagHelperContent AppendHtml(string value);
9191

9292
/// <summary>
9393
/// Appends the specified <paramref name="format"/> to the existing content after
@@ -157,9 +157,9 @@ IHtmlContentBuilder IHtmlContentBuilder.Append(string unencoded)
157157
}
158158

159159
/// <inheritdoc />
160-
IHtmlContentBuilder IHtmlContentBuilder.AppendEncoded(string encoded)
160+
IHtmlContentBuilder IHtmlContentBuilder.AppendHtml(string encoded)
161161
{
162-
return AppendEncoded(encoded);
162+
return AppendHtml(encoded);
163163
}
164164

165165
/// <inheritdoc />

test/Microsoft.AspNet.Razor.Runtime.Test/TagHelpers/DefaultTagHelperContentTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,11 +473,11 @@ public void Append_WrittenAsEncoded()
473473
}
474474

475475
[Fact]
476-
public void AppendEncoded_DoesNotGetEncoded()
476+
public void AppendHtml_DoesNotGetEncoded()
477477
{
478478
// Arrange
479479
var tagHelperContent = new DefaultTagHelperContent();
480-
tagHelperContent.AppendEncoded("Hi");
480+
tagHelperContent.AppendHtml("Hi");
481481

482482
var writer = new StringWriter();
483483

0 commit comments

Comments
 (0)