Liking cljdoc? Tell your friends :D

oc.lib.text

Functions related to processing text.

Functions related to processing text.
raw docstring

attributionclj

(attribution attribution-count item-count item-name authors)

Given the number of distinct authors to mention, the number of items, what to call the item (needs to pluralize with just an 's'), and a sequence of authors of the items to attribute (sequence needs to be distinct'able, and have a :name property per author), return a text string that attributes the authors to the items.

E.g.

(attribution 3 7 'comment' [{:name 'Joe'} {:name 'Joe'} {:name 'Moe'} {:name 'Flo'} {:name 'Flo'} {:name 'Sue'}]) '7 comments by Joe, Moe, Flo and others'

Given the number of distinct authors to mention, the number of items, what to call the
item (needs to pluralize with just an 's'), and a sequence of authors of the items
to attribute (sequence needs to be distinct'able, and have a `:name` property per author),
return a text string that attributes the authors to the items.

E.g.

(attribution 3 7 'comment' [{:name 'Joe'} {:name 'Joe'} {:name 'Moe'} {:name 'Flo'} {:name 'Flo'} {:name 'Sue'}])
'7 comments by Joe, Moe, Flo and others'
sourceraw docstring

body-wordsclj

source

strip-xss-tagsclj

(strip-xss-tags data)

Current xss tags are script, style, and input.

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

truncated-bodyclj

(truncated-body body)
source

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

× close