标签: React

1 篇文章

React字符串转义DOM
let dom = value; if (row.documents?.length) { row.documents.map((item) => { dom = dom.replaceAll(item, `<a>${item}</a>`); }); } return <div dangerouslySetInn…