Turns an HTML string into an analogous JS Object
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);