9 instantiations of TextEncoderSettings
Microsoft.Extensions.WebEncoders.Tests (2)
EncoderServiceCollectionExtensionsTests.cs (2)
41
options.TextEncoderSettings = new
TextEncoderSettings
();
73
options.TextEncoderSettings = new
TextEncoderSettings
();
System.Text.Encodings.Web (7)
System\Text\Encodings\Web\DefaultHtmlEncoder.cs (1)
13
internal static readonly DefaultHtmlEncoder BasicLatinSingleton = new DefaultHtmlEncoder(new
TextEncoderSettings
(UnicodeRanges.BasicLatin));
System\Text\Encodings\Web\DefaultJavaScriptEncoder.cs (2)
11
internal static readonly DefaultJavaScriptEncoder BasicLatinSingleton = new DefaultJavaScriptEncoder(new
TextEncoderSettings
(UnicodeRanges.BasicLatin));
12
internal static readonly DefaultJavaScriptEncoder UnsafeRelaxedEscapingSingleton = new DefaultJavaScriptEncoder(new
TextEncoderSettings
(UnicodeRanges.All), allowMinimalJsonEscaping: true);
System\Text\Encodings\Web\DefaultUrlEncoder.cs (1)
11
internal static readonly DefaultUrlEncoder BasicLatinSingleton = new DefaultUrlEncoder(new
TextEncoderSettings
(UnicodeRanges.BasicLatin));
System\Text\Encodings\Web\HtmlEncoder.cs (1)
36
return new DefaultHtmlEncoder(new
TextEncoderSettings
(allowedRanges));
System\Text\Encodings\Web\JavaScriptEncoder.cs (1)
56
return new DefaultJavaScriptEncoder(new
TextEncoderSettings
(allowedRanges));
System\Text\Encodings\Web\UrlEncoder.cs (1)
36
return new DefaultUrlEncoder(new
TextEncoderSettings
(allowedRanges));
13 references to TextEncoderSettings
Microsoft.Extensions.WebEncoders (3)
EncoderServiceCollectionExtensions.cs (2)
62
Func<
TextEncoderSettings
, TService> customSettingsFactory)
66
var
settings = serviceProvider
WebEncoderOptions.cs (1)
19
public
TextEncoderSettings
? TextEncoderSettings { get; set; }
System.Text.Encodings.Web (10)
System\Text\Encodings\Web\DefaultHtmlEncoder.cs (1)
17
internal DefaultHtmlEncoder(
TextEncoderSettings
settings)
System\Text\Encodings\Web\DefaultJavaScriptEncoder.cs (2)
16
internal DefaultJavaScriptEncoder(
TextEncoderSettings
settings)
21
private DefaultJavaScriptEncoder(
TextEncoderSettings
settings, bool allowMinimalJsonEscaping)
System\Text\Encodings\Web\DefaultUrlEncoder.cs (1)
15
internal DefaultUrlEncoder(
TextEncoderSettings
settings)
System\Text\Encodings\Web\HtmlEncoder.cs (1)
23
public static HtmlEncoder Create(
TextEncoderSettings
settings)
System\Text\Encodings\Web\JavaScriptEncoder.cs (1)
43
public static JavaScriptEncoder Create(
TextEncoderSettings
settings)
System\Text\Encodings\Web\TextEncoderSettings.cs (3)
25
/// Instantiates the filter by cloning the allow list of another <see cref="
TextEncoderSettings
"/>.
27
public TextEncoderSettings(
TextEncoderSettings
other)
219
if (GetType() == typeof(
TextEncoderSettings
))
System\Text\Encodings\Web\UrlEncoder.cs (1)
23
public static UrlEncoder Create(
TextEncoderSettings
settings)