-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
text 组件 decode 属性无效 #8549
Comments
科学上网 |
decode可以解析的有 、<、>、&、'、 、&emsp; \n换行符不支持 |
微信文档 末尾的 Bug & Tip
不支持 \n换行符 |
text组件换行应该怎么写 |
<Text className="test">{"测试换行\nxxxx"}</Text> |
packages/taro-runtime/src/dom/html/style.ts里面直接替换html里面所有换行有问题。 |
decode可以解析的有 、<、>、&、'、 、&emsp; |
看这个回答:#7003 (comment) |
使用 |
相关平台
微信小程序
复现仓库
https://github.com/without-yy/taro_onClick_issue/blob/master/src/pages/text/index.js
小程序基础库: 2.14.4
使用框架: React
复现步骤
期望结果
decode可以生效
实际结果
不生效
环境信息
The text was updated successfully, but these errors were encountered: