File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ HtmlSanitizer
8
8
9
9
[ ![ netstandard2.0] ( https://img.shields.io/badge/netstandard-2.0-brightgreen.svg )] ( https://img.shields.io/badge/netstandard-2.0-brightgreen.svg )
10
10
[ ![ net46] ( https://img.shields.io/badge/net-461-brightgreen.svg )] ( https://img.shields.io/badge/net-461-brightgreen.svg )
11
+ [ ![ net8.0] ( https://img.shields.io/badge/net-8.0-brightgreen.svg )] ( https://img.shields.io/badge/net-461-brightgreen.svg )
11
12
12
13
HtmlSanitizer is a .NET library for cleaning HTML fragments and documents from constructs that can lead to [ XSS attacks] ( https://en.wikipedia.org/wiki/Cross-site_scripting ) .
13
14
It uses [ AngleSharp] ( https://github.com/AngleSharp/AngleSharp ) to parse, manipulate, and render HTML and CSS.
Original file line number Diff line number Diff line change @@ -874,7 +874,7 @@ protected static string DecodeCss(string css)
874
874
if ( iri != null && ! iri . IsAbsolute && ! string . IsNullOrEmpty ( baseUrl ) )
875
875
{
876
876
// resolve relative URI
877
- if ( Uri . TryCreate ( baseUrl , UriKind . Absolute , out Uri baseUri ) )
877
+ if ( Uri . TryCreate ( baseUrl , UriKind . Absolute , out Uri ? baseUri ) )
878
878
{
879
879
try
880
880
{
Original file line number Diff line number Diff line change 10
10
<FileVersion >$(AppVeyor_Build_Version).0</FileVersion >
11
11
<PackageVersion >$(AppVeyor_Build_Version)</PackageVersion >
12
12
<Authors >Michael Ganss</Authors >
13
- <TargetFrameworks >net461;netstandard2.0</TargetFrameworks >
13
+ <TargetFrameworks >net461;netstandard2.0;net8.0 </TargetFrameworks >
14
14
<AssemblyName >HtmlSanitizer</AssemblyName >
15
15
<AssemblyOriginatorKeyFile >HtmlSanitizer.snk</AssemblyOriginatorKeyFile >
16
16
<SignAssembly >true</SignAssembly >
42
42
<PackageReference Include =" AngleSharp" Version =" [0.17.1]" />
43
43
<PackageReference Include =" AngleSharp.Css" Version =" [0.17.0]" />
44
44
<PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 8.0.0" PrivateAssets =" All" />
45
+ </ItemGroup >
46
+
47
+ <ItemGroup Condition =" '$(TargetFramework)' == 'net461'" >
48
+ <PackageReference Include =" System.Collections.Immutable" Version =" 9.0.1" />
49
+ </ItemGroup >
50
+ <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0'" >
45
51
<PackageReference Include =" System.Collections.Immutable" Version =" 9.0.1" />
46
52
</ItemGroup >
47
53
You can’t perform that action at this time.
0 commit comments