44 references to WebUtility
Aspire.Dashboard (4)
Components\Controls\GridValue.razor.cs (2)
113if (UrlParser.TryParse(_value, WebUtility.HtmlEncode, out var modifiedText)) 119_formattedValue = WebUtility.HtmlEncode(_value);
ConsoleLogs\LogParser.cs (1)
39var updatedText = WebUtility.HtmlEncode(s);
ConsoleLogs\UrlParser.cs (1)
38builder.Append(CultureInfo.InvariantCulture, $"<a target=\"_blank\" href=\"{url}\" rel=\"noopener noreferrer nofollow\">{WebUtility.HtmlEncode(url)}</a>");
Aspire.Dashboard.Tests (7)
ConsoleLogsTests\UrlParserTests.cs (7)
19var result = UrlParser.TryParse(input, WebUtility.HtmlEncode, out var _); 30var result = UrlParser.TryParse(input, WebUtility.HtmlEncode, out var modifiedText); 46var result = UrlParser.TryParse(input, WebUtility.HtmlEncode, out var modifiedText); 58var result = UrlParser.TryParse(input, WebUtility.HtmlEncode, out var _); 68var result = UrlParser.TryParse(input, WebUtility.HtmlEncode, out var _); 78var result = UrlParser.TryParse(input, WebUtility.HtmlEncode, out var modifiedText); 87var result = UrlParser.TryParse("https://www.example.com?query=string&param=value", WebUtility.HtmlEncode, out var modifiedText);
Microsoft.AspNetCore.Components.WebAssembly.Server (5)
TargetPickerUi.cs (5)
318: $" matching the URL {WebUtility.HtmlEncode(targetApplicationUrl)}"; 319await context.Response.WriteAsync($"<p>The list of targets returned by {WebUtility.HtmlEncode(debuggerTabsListUrl)} contains no entries{suffix}.</p>"); 358$"<a class='inspectable-page' href='{WebUtility.HtmlEncode(devToolsUrlWithProxy)}'>" 359+ $"<h3>{WebUtility.HtmlEncode(tab.Title)}</h3>{WebUtility.HtmlEncode(tab.Url)}"
Microsoft.AspNetCore.Identity.FunctionalTests (2)
MapIdentityApiTests.cs (2)
1365var url = WebUtility.HtmlDecode(confirmationMatch.Groups[1].Value); 1377return WebUtility.HtmlDecode(confirmationMatch.Groups[1].Value);
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
RazorViewLocationSpecificationTest.cs (1)
121WebUtility.HtmlDecode(content));
Microsoft.Cci.Extensions (2)
Writers\Syntax\HtmlSyntaxWriter.cs (1)
164WriteCore(WebUtility.HtmlEncode(s));
Writers\Syntax\OpenXmlSyntaxWriter.cs (1)
138WriteCore(WebUtility.HtmlEncode(text));
Microsoft.CodeAnalysis (1)
CommandLine\SarifErrorLogger.cs (1)
166return System.Net.WebUtility.UrlEncode(path);
Microsoft.CodeAnalysis.Features (1)
StackTraceExplorer\StackTraceAnalyzer.cs (1)
40callstack = WebUtility.HtmlDecode(callstack);
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
507: WebUtility.UrlEncode(uri.ToString());
Microsoft.DotNet.Helix.Sdk.Tests (1)
HelpersTests.cs (1)
31Assert.Equal(WebUtility.UrlDecode(workItemName), actual);
Microsoft.Extensions.AI.Abstractions (1)
Contents\DataUriParser.cs (1)
200Encoding.UTF8.GetBytes(WebUtility.UrlDecode(Data.ToString()));
Microsoft.Maui.Controls (1)
Shell\ShellContent.cs (1)
396 value = global::System.Net.WebUtility.UrlDecode((string)value);
netstandard (1)
netstandard.cs (1)
1320[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.WebUtility))]
StatusCodePagesSample (1)
Startup.cs (1)
71builder.AppendLine("<a href=\"" + HtmlEncoder.Default.Encode(referrer) + "\">Retry " + WebUtility.HtmlEncode(referrer) + "</a><br>");
System (1)
src\libraries\shims\System\ref\System.cs (1)
811[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.WebUtility))]
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\DistributedContextPropagator.cs (2)
120baggageList.Append(WebUtility.UrlEncode(item.Key)).Append('=').Append(WebUtility.UrlEncode(item.Value)).Append(CommaWithSpace);
System\Diagnostics\LegacyPropagator.cs (2)
172WebUtility.UrlDecode(baggageString.Substring(keyStart, keyEnd - keyStart)).Trim(s_trimmingSpaceCharacters), 173WebUtility.UrlDecode(baggageString.Substring(valueStart, currentIndex - valueStart)).Trim(s_trimmingSpaceCharacters)));
System.Net.HttpListener (2)
System\Net\Managed\HttpEndPointListener.cs (1)
183string path = WebUtility.UrlDecode(uri.AbsolutePath);
System\Net\Managed\HttpListenerRequest.Managed.cs (1)
172_context.ErrorMessage = WebUtility.HtmlEncode("Invalid url: " + base_uri + path);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
359[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.WebUtility))]
System.Runtime.Extensions (1)
System.Runtime.Extensions.cs (1)
52[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.WebUtility))]
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Dgml.cs (2)
34string deriv = WebUtility.HtmlEncode(state.Node.ToString()); 201WebUtility.HtmlEncode(builder._solver.PrettyPrint(label, builder._charSetSolver));
System.Web.HttpUtility (4)
System\Web\Util\HttpEncoder.cs (4)
107internal static string? HtmlDecode(string? value) => string.IsNullOrEmpty(value) ? value : WebUtility.HtmlDecode(value); 113output.Write(WebUtility.HtmlDecode(value)); 117internal static string? HtmlEncode(string? value) => string.IsNullOrEmpty(value) ? value : WebUtility.HtmlEncode(value); 123output.Write(WebUtility.HtmlEncode(value));