So konvertieren Sie eine Zeichenfolge, um Element in JavaScript zu reagieren

<div dangerouslySetInnerHTML={{__html: value}}/>

f XSS is your primary concern, you can use DOMPurify to sanitize your HTML before inserting it in the DOM via dangerouslySetInnerHTML
3 most used sanitizer libraries:
DOMPurify
Xss.
xss-filters.
Example of valid code is
const sanitizer = dompurify.sanitize;
return <div dangerouslySetInnerHTML={{__html: sanitizer(title)}} />; 

** if those are not your solution then try this package name html-react-parser
and parse the value with qoute.
example :
import parse from 'html-react-parser'; //es

export const StringToHtml=(str)=>{
  return parse("'"+str+"'")
}
siam88