我正在尝试使用基于Angular的前端工作,但我在使用此格式时遇到了困难。它的html标签是JSON格式,我想知道如何输出它们(在Javascript / Angular中)。这是一个片段(希望它有效):
spans": [ { "start": 63, "end": 70, "type": "strong" } ] }, { "type": "paragraph", "text": "Notice how the tag bar transforms into a formatting toolbar when you're writing in this editor. Now, this might look like a wysiwyg, but this is actually not your average wysiwyg, as it stores structured content, and not HTML. It allows you to build your content in better ways as you type it, making it easy for you to present it in various ways later.", "spans": [ { "start": 41, "end": 59, "type": "strong" } ] }
有人有这方面的经验吗?我想知道如何"爬行"这个JSON文档输出(例如跨度)到HTML。
谢谢!