weidian-inc / hera

A framework for running WeChat applet. (小程序 SDK,小程序转 H5,小程序转安卓、iOS 原生应用、小程序渲染引擎)
https://weidian-inc.github.io/hera
Other
1.48k stars 315 forks source link

字符实体&nbsp无法被解析 #5

Closed ghost closed 6 years ago

ghost commented 6 years ago

小程序text标签里面的&nbsp,在iOS模拟器直接显示“&nbsp”字符串

pgfxm commented 6 years ago

小程序本来就不支持&nbsp这种标签的

coco163 commented 6 years ago

在text里面 decode=“true”的情况下是可以解析 https://mp.weixin.qq.com/debug/wxadoc/dev/component/text.html

pgfxm commented 6 years ago

哦,这个特性目前还没支持呢,后续我们支持一下

IOriens commented 6 years ago

We've fixed this problem and published it to npm. You can use the following command to upgrade your cli and try it again, thanks for your feedback.

npm i -g hera-cli
xiaomizhou66 commented 5 years ago

哦,这个特性目前还没支持呢,后续我们支持一下

官网文档不是可以的么? https://developers.weixin.qq.com/miniprogram/dev/component/text.html

加上属性就ok了 Tips decode可以解析的有   < > & '     各个操作系统的空格标准并不一致。

组件内只支持 嵌套。 除了文本节点以外的其他节点都无法长按选中。