diff --git a/Razor.sln b/Razor.sln
index 9edc90c924..81568c0722 100644
--- a/Razor.sln
+++ b/Razor.sln
@@ -17,6 +17,12 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.Razor.
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.Razor.Test.Sources", "src\Microsoft.AspNetCore.Razor.Test.Sources\Microsoft.AspNetCore.Razor.Test.Sources.xproj", "{E3A2A305-634D-4BA6-95DB-AA06D6C442B0}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{F8C12DD6-659D-405A-AA27-FB22AD92A010}"
+ ProjectSection(SolutionItems) = preProject
+ global.json = global.json
+ NuGet.config = NuGet.config
+ EndProjectSection
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
diff --git a/src/Microsoft.AspNetCore.Razor.Runtime/TagHelpers/DefaultTagHelperContent.cs b/src/Microsoft.AspNetCore.Razor.Runtime/TagHelpers/DefaultTagHelperContent.cs
index 7bcb7db80b..64cfc97db6 100644
--- a/src/Microsoft.AspNetCore.Razor.Runtime/TagHelpers/DefaultTagHelperContent.cs
+++ b/src/Microsoft.AspNetCore.Razor.Runtime/TagHelpers/DefaultTagHelperContent.cs
@@ -92,7 +92,7 @@ namespace Microsoft.AspNetCore.Razor.TagHelpers
return AppendCore(null);
}
- return AppendCore(new HtmlEncodedString(encoded));
+ return AppendCore(new HtmlString(encoded));
}
///
diff --git a/src/Microsoft.AspNetCore.Razor.Runtime/TagHelpers/TagHelperOutput.cs b/src/Microsoft.AspNetCore.Razor.Runtime/TagHelpers/TagHelperOutput.cs
index d42dfc7eeb..b49718bca0 100644
--- a/src/Microsoft.AspNetCore.Razor.Runtime/TagHelpers/TagHelperOutput.cs
+++ b/src/Microsoft.AspNetCore.Razor.Runtime/TagHelpers/TagHelperOutput.cs
@@ -422,10 +422,10 @@ namespace Microsoft.AspNetCore.Razor.TagHelpers
if (htmlContent != null)
{
// Perf: static text in a bound attribute go down this path. Avoid allocating if possible (common case).
- var htmlEncodedString = value as HtmlEncodedString;
- if (htmlEncodedString != null && !htmlEncodedString.Value.Contains("\""))
+ var htmlString = value as HtmlString;
+ if (htmlString != null && !htmlString.Value.Contains("\""))
{
- writer.Write(htmlEncodedString.Value);
+ writer.Write(htmlString.Value);
}
else
{
@@ -499,10 +499,10 @@ namespace Microsoft.AspNetCore.Razor.TagHelpers
if (htmlContent != null)
{
// Perf: static text in a bound attribute go down this path. Avoid allocating if possible (common case).
- var htmlEncodedString = value as HtmlEncodedString;
- if (htmlEncodedString != null && !htmlEncodedString.Value.Contains("\""))
+ var htmlString = value as HtmlString;
+ if (htmlString != null && !htmlString.Value.Contains("\""))
{
- destination.AppendHtml(htmlEncodedString);
+ destination.AppendHtml(htmlString);
}
else
{
diff --git a/src/Microsoft.AspNetCore.Razor/CodeGenerators/GeneratedTagHelperContext.cs b/src/Microsoft.AspNetCore.Razor/CodeGenerators/GeneratedTagHelperContext.cs
index e7db286a03..a3ce070d82 100644
--- a/src/Microsoft.AspNetCore.Razor/CodeGenerators/GeneratedTagHelperContext.cs
+++ b/src/Microsoft.AspNetCore.Razor/CodeGenerators/GeneratedTagHelperContext.cs
@@ -39,7 +39,7 @@ namespace Microsoft.AspNetCore.Razor.CodeGenerators
TagHelperOutputContentPropertyName = "Content";
ExecutionContextSetOutputContentAsyncMethodName = "SetOutputContentAsync";
TagHelperAttributeTypeName = "Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute";
- EncodedHtmlStringTypeName = "Microsoft.AspNetCore.Html.HtmlEncodedString";
+ EncodedHtmlStringTypeName = "Microsoft.AspNetCore.Html.HtmlString";
}
///
diff --git a/test/Microsoft.AspNetCore.Razor.Runtime.Test/TagHelpers/DefaultTagHelperContentTest.cs b/test/Microsoft.AspNetCore.Razor.Runtime.Test/TagHelpers/DefaultTagHelperContentTest.cs
index fca8540731..dc9707ba94 100644
--- a/test/Microsoft.AspNetCore.Razor.Runtime.Test/TagHelpers/DefaultTagHelperContentTest.cs
+++ b/test/Microsoft.AspNetCore.Razor.Runtime.Test/TagHelpers/DefaultTagHelperContentTest.cs
@@ -104,7 +104,7 @@ namespace Microsoft.AspNetCore.Razor.TagHelpers
{
// Arrange
var source = new DefaultTagHelperContent();
- source.AppendHtml(new HtmlEncodedString("hello"));
+ source.AppendHtml(new HtmlString("hello"));
source.Append("Test");
var items = new List