jin-yufeng / mp-html

小程序富文本组件,支持渲染和编辑 html,支持在微信、QQ、百度、支付宝、头条和 uni-app 平台使用
https://jin-yufeng.gitee.io/mp-html
MIT License
3.26k stars 479 forks source link

content的中的内容,如果html校验不过的时候,是否能按string处理,而非报错。 #487

Closed feng-hu-wu-yu closed 1 year ago

feng-hu-wu-yu commented 1 year ago

新功能描述

content的中的内容,如果html校验不过的时候,是否能按string处理,而非报错。

应用场景

现:

<!--现在下边这个方式是会报错,希望可以直接显示为'<'-->
<mp-html content="<"></mp-html>
jin-yufeng commented 1 year ago

不会报错吧,报什么错