HtmlConverter

Bidirectional bridge between joy-dom Spec and HTML.

The forward path (toHtml) emits a self-contained HTML representation of a Spec (style map and breakpoints flow into a <style> block by default).

The reverse path (fromHtml) parses HTML that this converter produced (and reasonably close variants) back into a Spec. It is best-effort, not a general HTML/CSS importer.

Functions

Link copied to clipboard
fun fromHtml(html: String): <Error class: unknown class>
Link copied to clipboard
fun toHtml(spec: <Error class: unknown class>, options: HtmlOptions = HtmlOptions()): String