Base:
method
Encode
System.Text.Encodings.Web.TextEncoder.Encode(System.String)
6 references to Encode
Microsoft.AspNetCore.Mvc.Razor.Test (2)
RazorViewTest.cs (2)
649var htmlEncodedNewLine = htmlEncoder.Encode(Environment.NewLine); 1324await v.Output.WriteLineAsync(htmlEncoder.Encode(v.RenderSection("foo").ToString()));
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
CacheTagHelperTest.cs (3)
842Assert.Equal(encoder.Encode(expected), tagHelperOutput1.Content.GetContent()); 925Assert.Equal(encoder.Encode(expected), tagHelperOutput1.Content.GetContent()); 926Assert.Equal(encoder.Encode(expected), tagHelperOutput2.Content.GetContent());
Microsoft.Extensions.WebEncoders.Tests (1)
HtmlTestEncoderTest.cs (1)
20var output = encoder.Encode(input);