TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: HTML to JSON to DOM

11 点作者 gliechtenstein将近 8 年前

1 comment

gliechtenstein将近 8 年前
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 未加载