Liking cljdoc? Tell your friends :D

oc.lib.html

Functions related to processing HTML.

Functions related to processing HTML.
raw docstring

allowed-block-elementsclj/s


first-body-thumbnailclj/s

(first-body-thumbnail html-body)
(first-body-thumbnail html-body exclude-gifs?)

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.
raw docstring

sanitize-htmlclj

(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.
raw docstring

strip-html-tagsclj

(strip-html-tags html-str & {:keys [decode-entities?] :as opts})

Reduces an html string to only its textual content, removing all tags. Takes optional args:

  • :decode-entities? if true, will decode HTML entities (e.g. @)
Reduces an html string to only its textual content, removing all tags. Takes
optional args:
  - `:decode-entities?` if true, will decode HTML entities (e.g. @)
raw docstring

strip-xss-tagsclj/s

(strip-xss-tags data)

Current xss tags are script, style, and input.

Current xss tags are script, style, and input.
raw docstring

user-input-html-policyclj


xss-tags-rxclj/s

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close