domon-parser

Parse HTML strings into the DOMON format

Usage no npm install needed!

<script type="module">
  import domonParser from 'https://cdn.skypack.dev/domon-parser';
</script>

README

domon-parser

Parse HTML strings into the DOMON format

The DOMON format is just a lightweight DOM representation with no circular references, making it suitable for JSON etc.

Install

npm install domon-parser

Usage

const parser = require( 'domon-parser' )

const domonDoc = parser.parse( '<div></div>' )

const domonFragment = parser.parseFragment( '<div></div>' )