stop parsing within a tag

31 views
Skip to first unread message

Sam Raker

unread,
Feb 13, 2015, 2:25:34 PM2/13/15
to enliv...@googlegroups.com
(I posted a version of this q to the clojure group, but I should ask it here, too.)

I'm scraping some pages that have preformatted text (<pre>...</pre>) that contain tag-looking things in them--i.e., lines of text that start and end with <...>. Enlive goes ahead and parses those lines like they were "real" HTML, but they aren't and that's messing up my application.

Is there any way to get enlive not to "fully parse" content like this?


Thanks,
-sam

Christophe Grand

unread,
Feb 16, 2015, 3:51:49 AM2/16/15
to enlive-clj
As far as I know both tagsoup and jsoup will parse whatever is in pre.
Maybe there's an option in one of them to prevent this behavior.

--
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.



--
On Clojure http://clj-me.cgrand.net/
Clojure Programming http://clojurebook.com
Training, Consulting & Contracting http://lambdanext.eu/
Reply all
Reply to author
Forward
0 new messages