在react中解析html标签代码

 https://reactjs.org/docs/dom-elements.html 

 
{/*
                 {this.state.list.content}在页面返回了<p>香酥黄金鱼</p>,带html标签竟然不能解析

                 react中解析html标签代码
                

                 <div dangerouslySetInnerHTML={{__html:this.state.list.content}}></div>

                  */}
原文地址:https://www.cnblogs.com/nuister/p/12494869.html