KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
node-htmltree
★ 12
Open GitHub ↗
simple dom for xml/html
Download README (.md)
Explore Similar Repositories
zip-code-data-hacking
:
sourcing publicly available files, generate useful zip code-county data
dashcat
:
DashCat - The GitHub viewer
node-caption
:
Node utility for captioning images via imageMagick
zf2-geoname
:
Maintain a local copy of the Geonames (places) database.
project-cockpit
:
Use a screen, a web browser, Jenkins and Github to have some nice dashboard!
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
node-htmltree
?
Download (.md)
# 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('<html><body onclick=foo></body></html>', 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