Liking cljdoc? Tell your friends :D

clj-string-layout.escape

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

htmlclj

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

map-cell-seqclj

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

map-cellsclj

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

markdown-cellclj

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

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close