File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ name := "dispatch-jsoup"
3
3
description :=
4
4
" Dispatch module providing jsoup html parsing support"
5
5
6
- libraryDependencies += " org.jsoup" % " jsoup" % " 1.12 .1"
6
+ libraryDependencies += " org.jsoup" % " jsoup" % " 1.18 .1"
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ object Query {
16
16
}
17
17
18
18
object Clean {
19
- import org .jsoup .safety .Whitelist
20
- def apply (wl : Whitelist ): Response => String =
19
+ import org .jsoup .safety .Safelist
20
+ def apply (wl : Safelist ): Response => String =
21
21
{ r => Jsoup .clean(dispatch.as.String (r), r.getUri().toString, wl) }
22
22
}
Original file line number Diff line number Diff line change 1
1
package dispatch .spec
2
2
3
3
import org .scalacheck ._
4
- import org .jsoup .safety .Whitelist
4
+ import org .jsoup .safety .Safelist
5
5
6
6
object JsoupSpecification
7
7
extends Properties (" Basic" )
@@ -54,7 +54,7 @@ with DispatchCleanup {
54
54
property(" handle Cleaning" ) = forAll(Gen .alphaStr) { (sample : String ) =>
55
55
val clean = Http .default(
56
56
localhost / " unclean" <<? Map (" echo" -> sample) > as.jsoup.Clean (
57
- Whitelist .basic)
57
+ Safelist .basic)
58
58
)
59
59
clean() == (SafeFormat format sample)
60
60
}
You can’t perform that action at this time.
0 commit comments