You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (child.type === 'text') {
const text = document.createTextNode(child.content)
if (isFunction(options.html!.transformText)) {
return options.html!.transformText(text, child)
}
parent?.appendChild(text)
return text
}
可以改成
if (child.type === 'text') {
let text = document.createTextNode(child.content)
if (isFunction(options.html!.transformText)) {
text = options.html!.transformText(text, child)
}
parent?.appendChild(text)
return text
}
相关平台
微信小程序
小程序基础库: 2.20.0
使用框架: React
解决方案
taro-runtime
的html-parser
中调用transformText
的代码返回有问题可以改成
期望结果
正常渲染text
实际结果
无法渲染text
环境信息
The text was updated successfully, but these errors were encountered: