Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/clj/hickory/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,17 @@
([this] (trampoline as-hickory this (hzip/hickory-zip this)))
([this loc] (end-or-recur as-hickory loc (.getWholeText this)))))

;; Jsoup/parse is polymorphic, we'll let reflection handle it for now
(set! *warn-on-reflection* false)

(defn parse
"Parse an entire HTML document into a DOM structure that can be
used as input to as-hiccup or as-hickory."
[s]
(Jsoup/parse s))

(set! *warn-on-reflection* true)

(defn parse-fragment
"Parse an HTML fragment (some group of tags that might be at home somewhere
in the tag hierarchy under <body>) into a list of DOM elements that can
Expand Down