you're right. We could call it htmlToObj or some such thing. I've actually started using the two functions jsonToHtml and htmlToJson all kinds of other places within our code. In combination with JSON.parse and JSON.stringify it's a much more accurate way of storing and sending HTML information around when compared with innerHTML. The fact that innerHTML changes the HTML structure before outputting it was he main cause for trouble also with Dom-diff.