--
You received this message because you are subscribed to the Google Groups "Enlive" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enlive-clj+...@googlegroups.com.
To post to this group, send email to enliv...@googlegroups.com.
Visit this group at http://groups.google.com/group/enlive-clj.
For more options, visit https://groups.google.com/d/optout.
(defn get-content
[url] (html/at
(html/select (fetch-url url) [:article :> :*])
[:h1] nil ; strip h1 from content
[:p html/text-node] (fn [node] (newline-to-space node))
[:div :pre :span] html/unwrap
[:div :pre :code] html/unwrap
[:div.highlight] html/unwrap
[:pre] (html/add-class "lang:clojure" "decode:true")))