Helpers for escaping cell values before rendering markup-oriented layouts.
The HTML and Markdown presets intentionally emit cell contents verbatim so callers can decide whether values are already trusted. Use this namespace to escape untrusted or arbitrary data before passing it to layout or layout-seq.
Helpers for escaping cell values before rendering markup-oriented layouts. The HTML and Markdown presets intentionally emit cell contents verbatim so callers can decide whether values are already trusted. Use this namespace to escape untrusted or arbitrary data before passing it to layout or layout-seq.
(html value)Escapes a value for HTML text content inside table cells.
nil is treated as an empty string and all other values are coerced with str. Escapes &, <, >, double quote, and single quote. This helper is intended for text content, not for constructing HTML attributes or URLs.
Escapes a value for HTML text content inside table cells. nil is treated as an empty string and all other values are coerced with str. Escapes &, <, >, double quote, and single quote. This helper is intended for text content, not for constructing HTML attributes or URLs.
(map-cell-seq f rows)Lazily applies f to every cell in rows.
Each realized row is returned as a vector, so the result can be passed directly to layout-seq for large data sets. The outer sequence is lazy; each row is transformed when that row is consumed.
Lazily applies f to every cell in rows. Each realized row is returned as a vector, so the result can be passed directly to layout-seq for large data sets. The outer sequence is lazy; each row is transformed when that row is consumed.
(map-cells f rows)Applies f eagerly to every cell in rows.
Returns a vector of row vectors suitable for layout, layout-str, or other eager consumers. Use map-cell-seq instead when the input is large or lazy.
Applies f eagerly to every cell in rows. Returns a vector of row vectors suitable for layout, layout-str, or other eager consumers. Use map-cell-seq instead when the input is large or lazy.
(markdown-cell value)Escapes a value for a Markdown table cell.
nil is treated as an empty string and all other values are coerced with str. Backslashes and pipes are escaped, and CR/LF line breaks are rendered as <br>. This keeps generated Markdown tables structurally valid when cell values contain table delimiters or line breaks.
Escapes a value for a Markdown table cell. nil is treated as an empty string and all other values are coerced with str. Backslashes and pipes are escaped, and CR/LF line breaks are rendered as <br>. This keeps generated Markdown tables structurally valid when cell values contain table delimiters or line breaks.
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 |