# node-htmltree **Repository Path**: mirrors_defunctzombie/node-htmltree ## Basic Information - **Project Name**: node-htmltree - **Description**: simple dom for xml/html - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-02-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # htmltree [](https://travis-ci.org/defunctzombie/node-htmltree) # Very simple xml/html -> syntax tree converter. Useful for further mangling your html source. ```javascript var htmltree = require('htmltree'); htmltree('
', function(err, doc) { // doc { // stuff in the doctype tag doctype: undefined || string root: [ ... node type, see below ... ] } }); ``` Each node entry is an object with the following form. ```javascript // node [ { type: 'tag' | 'text' | 'comment', name: 'html', // set for 'tag' nodes attributes: { }, children: [ { tag: body, attributes: { onclick: 'foo' } }, ... ], // true if the tag node is a void element no body void: boolean } ] ``` ## license MIT