测试
”)} static accordion(ballInfo, content) {
if (ballInfo.isRetrieving) {
return (
<AccordionHeader className="jump-player-question-title jump-submenu-dropmenuHeader" header="ball ball ball ball sjsdsdkjjksddjks?" content={PLAYER.accordion(ballInfo, "qwe <p> testing</p>")} />
<AccordionHeader className="jump-player-question-title jump-submenu-dropmenuHeader" header="dsknjdsncjdnsjkcsdnjcsdncjkdsn" content={PLAYER.accordion(ballInfo, "asd <a href="#">testing 2</a>")} />
答案 0 :(得分:0)
我不是反应专家,但你可以试试这个,替换
<p> {{content}} </p>
有了这个
<p dangerouslySetInnerHTML={{__html: content}} />