【发布时间】:2010-12-05 07:03:01
【问题描述】:
我正在从 API 获取文本,它类似于以下内容:
text = 'replied to @james and he was visiting this http://some-site.com/another/something/../ so what you think about it';
如何解析此文本并将链接设为 html 链接,并将 @james 设为 html 链接,但使用它们自己的 href 值。
有谁知道任何已经这样做的功能,或者有人可以在这里粘贴他们自己的功能吗?
【问题讨论】:
标签: html json api parsing response