Bjørn Olav Ringstad
5d10d3b07e
Fixed classcast error in post processing of nodes
...
When you use SanitizeDocument the 'context' parameter of DoPostProcess and RemoveComments is set to be the HTML document itself. The post processing require the context to be an IElement which isn't the case for AngleSharps HtmlDocument. Changed signatures of methods in post processing to use an INode instead. This allows the PostProcessNode event to be called when using SanitizeDocument.
2019-10-03 07:32:44 +02:00
Michael Ganss
a27b0d80a7
Merge branch 'master' into AngleSharp_0_10
2019-06-02 15:34:02 +02:00
Michael Ganss
a258535f13
Fix #164
2019-06-02 14:36:53 +02:00
Michael Ganss
a20cf1ad83
Update appveyor.yml
2019-05-15 14:13:57 +02:00
Michael Ganss
945f2ae2a1
Update to AngleSharp 0.12.1
...
Make tests work
2019-05-15 13:54:39 +02:00
Michael Ganss
07835ee2d6
Add test for #163
2019-04-12 13:50:06 +02:00
Michael Ganss
04ba3cf189
Merge remote-tracking branch 'remotes/origin/master' into AngleSharp_0_10
2019-01-27 18:45:34 +01:00
Michael Ganss
11b271631e
Add SanitizeDocument overload that takes a Stream
...
Fixes #158
2019-01-27 17:02:38 +01:00
Michael Ganss
fa391118a7
Merge branch 'master' into AngleSharp_0_10
2019-01-18 14:17:23 +01:00
Michael Ganss
dfd5e9d237
Fix #156
2019-01-18 14:13:49 +01:00
Michael Ganss
b3684d47ea
Merge branch 'master' into AngleSharp_0_10
2019-01-07 13:00:45 +01:00
Michael Ganss
82d8ca44aa
Fix #137
2018-08-01 17:11:30 +02:00
Michael Ganss
f5421a8965
Use coverlet instead of OpenCover
...
Target netcoreapp2.0
2018-07-18 14:03:10 +02:00
Michael Ganss
b6486bf7dc
Update to AngleSharp 0.9.9.1
2018-01-05 14:00:12 +01:00
Michael Ganss
248ad10f1c
Merge branch 'master' into AngleSharp_0_10
2017-10-11 14:01:32 +02:00
Levi Baker
919a71dba2
Added method SantizeDom that returns the parsed and cleaned IHtmlDocument. This exposes the result for further DOM manipulation without requiring another parse.
...
Also added a PostProcessDom event that runs after PostProcessNode. This also allows the whole DOM to be further manipulated without executing on every node or re-parsing the document.
2017-09-22 10:37:38 -07:00
Mark Bell
6a07682267
Implement CSS class whitelisting
2017-06-16 13:05:51 +01:00
Michael Ganss
124d450f7b
Merge branch 'master' into AngleSharp_0_10
...
# Conflicts:
# src/HtmlSanitizer/HtmlSanitizer.project.json
2017-06-08 13:52:15 +02:00
Michael Ganss
62c6fbdd5f
Fix #119
2017-04-28 15:40:08 +02:00
Michael Ganss
393c009b80
Refactor according to VS suggestions
...
Use AppVeyor VS 2017 build image
2017-04-12 16:10:31 +02:00
Michael Ganss
255fd58ea6
Update to VS 2017
...
Use System.Uri only for resolving relative URLs (fixes #118 , fixes #106 , fixes #66 )
2017-04-12 16:01:42 +02:00
Michael Ganss
7a2e7fd29f
Prepare for AngleSharp 0.10
2017-03-23 19:49:23 +01:00
Michael Ganss
fe1ec068e5
Add event that is raised when a comment is about to be removed (see #98 )
2016-12-09 12:40:24 +01:00
Michael Ganss
c0079fdbd7
Normalize DOM
2016-11-15 17:41:30 +01:00
Michael Ganss
e0cdf4cac6
Update to AngleSharp 0.9.9
2016-10-31 16:34:23 +01:00
Michael Ganss
c451c8ba52
Add KeepChildNodes
...
Add back beta label to version
2016-10-10 13:48:48 +02:00
Michael Ganss
d8c6ac0598
Add test for keeping child nodes (see #25 , #75 )
...
Remove beta label from version
2016-10-10 13:31:56 +02:00
Michael Ganss
45f3402b4c
Add test for #90
2016-10-07 15:47:33 +02:00
Michael Ganss
2b1acb5aa9
Make ThreadTest work in .NET Core
2016-09-22 12:32:36 +02:00
Michael Ganss
7002fc5176
Add thread safety unit test
2016-09-22 11:49:23 +02:00
Michael Ganss
21590d7cdb
Update to AngleSharp 0.9.8.1 ( fixes #80 )
2016-09-19 15:59:14 +02:00
Michael Ganss
553b8dd34e
Add HtmlFormatter.cs ( fixes #84 )
2016-08-22 15:19:20 +02:00
Michael Ganss
bf1b96ca5b
Fix #81
2016-08-15 15:39:31 +02:00
Michael Ganss
70066ebcd9
Add test for #80
2016-08-15 15:14:04 +02:00
Michael Ganss
f81cb1db7b
Fix #75
...
Update to .NET Core 1.0
2016-07-19 17:22:55 +02:00
Michael Ganss
6d03d1caa2
Move HtmlSanitizer to src, HtmlSanitizer.Tests to test
...
Add dotnet test to appveyor.yml
2016-06-05 22:54:31 +02:00