react 字符串强转为html标签时间:2023-03-09 06:32:55 react中,富文本编辑 从数据库取出来 是带标签的 字符串,需要强转为 节点 <div dangerouslySetInnerHTML={{ __html: this.state.obj.html}}></div>