react js set html from string code example Example: react render string as html <div dangerouslySetInnerHTML={{__html: 'First · Second'}} />