Yeah I like it, except it returns one node and then grabs all the text at once.
My version with select grabs all the inner nodes, so that I can interpose "\n\n" in between them. Anyway I can replicate that?
My version: string -> 5 nodes -> 3 strings ("Header" "Some text here!" "link text")
You version: string -> 1 node -> one string ("HeaderSome text here!link text")
This is what I'm doing with the html->text function:
(defn join-lines [strs]
(apply str (interpose "\n\n" (html->text html))))
Any alternatives, or better techniques would be great. The select body thing I'm doing seems odd. I basically just need to load the string and get all the nodes in the body separately.