(block->blocks blocks block position)Takes an input of blocks, into which it adds block,
depending on given position. If the blocks are empty,
it simply returns a vector with just the given block in it.
Otherwise, it will position it accordingly.
Takes an input of `blocks`, into which it adds `block`, depending on given `position`. If the `blocks` are empty, it simply returns a vector with just the given `block` in it. Otherwise, it will position it accordingly.
(block<-blocks blocks id)Takes an input of blocks from which it removes whatever
block is occupying space on given index, and returns the
result.
Takes an input of `blocks` from which it removes whatever block is occupying space on given `index`, and returns the result.
(parse-html html)Takes in a raw string of html, and then removes all HTML
elements other than a a, u, b, i. It also removes
any attributes the HTML elements may have, to make sure that
when a user pastes content from something that gives along
formatting instructions, we'd ignore that.
Takes in a raw string of `html`, and then removes all HTML elements other than a `a`, `u`, `b`, `i`. It also removes any attributes the HTML elements may have, to make sure that when a user pastes content from something that gives along formatting instructions, we'd ignore that.
(string->string string inserted-string index)Inserts the inserted-string into string at the given
index index.
Inserts the `inserted-string` into `string` at the given index `index`.
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 |