Skip to content

b4ubles/html-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html-parser

Simple HTML parser, sample output:

[{
    'DOCTYPE': {}
}, {
    'html': {
        'children': [{
            'head': {
                'children': [{
                    'meta': {
                        'charset': '"UTF-8"'
                    }
                }, {
                    'title': {
                        'content': 'Document'
                    }
                }, {
                    'script': {
                        'content': '\n        var x = "<p>test</p>";\n    '
                    }
                }]
            }
        }],
        'lang': '"en"'
    }
}, {
    'body': {
        'children': [{
            'div': {
                'children': [{
                    'p': {
                        'content': 'This is p tag'
                    }
                }]
            }
        }]
    }
}]

Releases

No releases published

Packages

No packages published