Functions to convert from one representation to another.
Functions to convert from one representation to another.
(hiccup-fragment-to-hickory hiccup-forms)
Given a sequence of hiccup forms representing a document fragment, returns an equivalent sequence of hickory fragments.
Note that this function is heavyweight: it requires a full HTML re-parse to work.
Given a sequence of hiccup forms representing a document fragment, returns an equivalent sequence of hickory fragments. Note that this function is heavyweight: it requires a full HTML re-parse to work.
(hiccup-to-hickory hiccup-forms)
Given a sequence of hiccup forms representing a full document, returns an equivalent hickory node representation of that document. This will perform HTML5 parsing as a full document, no matter what it is given.
Note that this function is heavyweight: it requires a full HTML re-parse to work.
Given a sequence of hiccup forms representing a full document, returns an equivalent hickory node representation of that document. This will perform HTML5 parsing as a full document, no matter what it is given. Note that this function is heavyweight: it requires a full HTML re-parse to work.
(hickory-to-hiccup dom)
Given a hickory format dom object, returns an equivalent hiccup representation. This can be done directly and exactly, but in general you will not be able to go back from the hiccup.
Given a hickory format dom object, returns an equivalent hiccup representation. This can be done directly and exactly, but in general you will not be able to go back from the hiccup.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close