Functions related to processing text.
Functions related to processing text.
(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'
(strip-xss-tags data)
Current xss tags are script, style, and input.
Current xss tags are script, style, and input.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close