TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: HTML to JSON to DOM

11 pointsby gliechtensteinalmost 8 years ago

1 comment

gliechtensteinalmost 8 years ago
Hey guys I know this post will be one of the most meta things to post here and probably a lot of people will say &quot;what&#x27;s the point?&quot; but I thought it was cool so thought I would share.<p>For background, I am working on a JS library called cell.js (<a href="https:&#x2F;&#x2F;www.celljs.org" rel="nofollow">https:&#x2F;&#x2F;www.celljs.org</a>), which turns a JSON object into a dynamic web app.<p>Anyway, this particular app (HTML to JSON to DOM) takes any HTML, parses it into JSON, and feeds it to cell.js, which then turns it back to DOM again. I built it because sometimes I just want to take an existing HTML and transform it to JSON, so I can turn any existing website into cell, and it works pretty well for that purpose.<p>You can try copy and pasting any website HTML into it to see the effect, as shown at <a href="https:&#x2F;&#x2F;github.com&#x2F;gliechtenstein&#x2F;HTML2JSON2DOM" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gliechtenstein&#x2F;HTML2JSON2DOM</a>. Hope you find it cool as well!
评论 #14881499 未加载