HTML String to nodes to extracted data

14 views
Skip to first unread message

Thomas Meier

unread,
Dec 10, 2015, 6:40:02 PM12/10/15
to Enfocus
I cannot see how to take something like this:

"<div><h1 class="title-major">care</h1><p>dont care</p></div>"

And then get this out of it:

"care"

In jquery I might do something like $("<div><h1 class="title-major">care</h1><p>dont care</p></div>").find('.title-major').text() ==> "care". How would this be accomplished in Enfocus?

Creighton Kirkendall

unread,
Dec 10, 2015, 8:29:36 PM12/10/15
to Enfocus
Thomas,
You can use the get-text extractor here:  https://ckirkendall.github.io/enfocus-site/#doc-extract

Creighton

--

---
You received this message because you are subscribed to the Google Groups "Enfocus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enfocus+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages