Posted By

ef on 01/28/12


Tagged

html strip tags


Versions (?)

Strip tags from HTML


 / Published in: Clojure
 

Function strips HTML tags from string.

  1. (import '[org.jsoup Jsoup])
  2. (defn strip-html-tags
  3. "Function strips HTML tags from string."
  4. [s]
  5. (.text (Jsoup/parse s)))

Report this snippet  

You need to login to post a comment.