使用entities html 转义

<div
className='rich-wrap'
dangerouslySetInnerHTML={({ __html: entities.decodeHTML(rightsInfo.rightsDesc) })}>
</div>

 

import * as entities from 'entities';

 

posted on 2022-01-25 11:26  漫思  阅读(28)  评论(0编辑  收藏  举报

导航