Functions related to processing HTML.
Functions related to processing HTML.
(first-body-thumbnail html-body)Given an entry body get the first thumbnail available. Thumbnail type: image, video or chart. This rely on the similitudes between jQuery and soup parsed objects like the attr function.
Given an entry body get the first thumbnail available. Thumbnail type: image, video or chart. This rely on the similitudes between jQuery and soup parsed objects like the attr function.
(sanitize-html html-str)Sanitizes HTML content assumed to have been created by a (untrusted) user.
Sanitizes HTML content assumed to have been created by a (untrusted) user.
(strip-html-tags html-str)Reduces an html string to only its textual content, removing all tags
Reduces an html string to only its textual content, removing all tags
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |