Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 23, 2018. It is now read-only.

ogewan/HTMLparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

10 Commits

Repository files navigation

*This project is no longer being maintained: see JSX as an alternative

HTMLparser

Turns an HTML string into an analogous JS Object

Usage

To get HTML as an Object

foo = HTML2Obj(string);

To turn the object into a DOM element

bar = Obj2HTML(foo);

Note: Obj2HTML takes an additional argument of a DOM element. It will append to this element.

//appends foo to document.body
bar = Obj2HTML(foo,document.body);

About

Turns an HTML string into a analogous JS Object

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /