diff --git a/samples/ExceptionHandlerSample/Startup.cs b/samples/ExceptionHandlerSample/Startup.cs
index a143b167ba..f57adf61b2 100644
--- a/samples/ExceptionHandlerSample/Startup.cs
+++ b/samples/ExceptionHandlerSample/Startup.cs
@@ -1,9 +1,9 @@
using System;
+using System.Text.Encodings.Web;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Diagnostics;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Features;
-using Microsoft.Extensions.WebEncoders;
namespace ExceptionHandlerSample
{
@@ -26,7 +26,7 @@ namespace ExceptionHandlerSample
if (error != null)
{
// This error would not normally be exposed to the client
- await context.Response.WriteAsync("
Error: " + HtmlEncoder.Default.HtmlEncode(error.Error.Message) + "
\r\n");
+ await context.Response.WriteAsync("
Error: " + HtmlEncoder.Default.Encode(error.Error.Message) + "
\r\n");
}
await context.Response.WriteAsync("
Home
\r\n");
await context.Response.WriteAsync("