Added code path for rendering html encoded content on K

This commit is contained in:
David Fowler 2014-03-08 23:14:40 -08:00
parent 282ccd6999
commit 34641d21e6
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,8 @@ namespace Microsoft.AspNet.Mvc.Razor
{
#if NET45
WebUtility.HtmlEncode(content.ToString(), writer);
#else
writer.Write(WebUtility.HtmlEncode(content.ToString()));
#endif
}
}