Strip tags from HTML


/ Published in: Clojure
Save to your folder(s)

Function strips HTML tags from string.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.