我尝试用以下代码渲染rich-text
<rich-text nodes="{{article.content}}"></rich-text>
其中article.content的值为
<h1>富文本</h1><p>文本内容</p><img src='http://usr/2022-08-22_4092485885'
src引用的是本地存储文件的地址,渲染错误
[渲染层错误] Error: Parsing failed at character position 66 near "2-08-22_4092485885'"
at o.parse (http://127.0.0.1:43351/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1661072033026&v=2.14.1:2:198185)
at Object.t.parse (http://127.0.0.1:43351/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1661072033026&v=2.14.1:2:323348)
at l._nodesObserver (http://127.0.0.1:43351/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1661072033026&v=2.14.1:18:71616)
at Function.o.safeCallback (http://127.0.0.1:43351/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1661072033026&v=2.14.1:2:222573)
at l.<anonymous> (http://127.0.0.1:43351/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1661072033026&v=2.14.1:2:264699)
at c.doUpdates (http://127.0.0.1:43351/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1661072033026&v=2.14.1:2:283081)
at S (http://127.0.0.1:43351/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1661072033026&v=2.14.1:18:1275899)
at S (http://127.0.0.1:43351/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1661072033026&v=2.14.1:18:1278955)
at E (http://127.0.0.1:43351/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1661072033026&v=2.14.1:18:1195104)
at S (http://127.0.0.1:43351/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1661072033026&v=2.14.1:18:1195703)(env: Windows,mp,1.06.2208010; lib: 2.14.1)
!我曾尝试过uuid作为本地存储文件名,但还是和上面报同样的错误
抱歉,已经解决了,是img标签没有闭合的原因