Returns the textual contents of the given location, similar to
xpaths's value-of
(defn text
"Returns the textual contents of the given location, similar to
xpaths's value-of"
[loc]
(.replaceAll
^String (apply str (xml-> loc zf/descendants zip/node string?))
(str "[\\s" (char 160) "]+") " "))
Comments top
No comments for text. Log in to add a comment.