title: React plain text to html code
body: <p>I get a list of objects from the API. One of the values of each object is a plain string:</p>
  
  <pre><code>snippet: "Chainsmokers were re-formed as an EDM DJ duo in 2012 under the management of &lt;span class="searchmatch"&gt;Adam&lt;/span&gt; Alpert in New York City. Pall, who had grown up DJing, was introduced to"
  </code></pre>
  
  <p>I'd like to convert this plain string to be interpreted as html. How do I do that?</p>
  
  <p>Edit:
  What I try to do is map over a list in React like so:</p>
  
  <pre><code>const list = props.responseData.map(item =&gt; (
  &lt;li key={item.pageid}&gt;
    {item.title}
    &lt;br /&gt;
    {item.snippet}
  &lt;/li&gt;
  ));
  </code></pre>
  
  <p>The snippet one is displayed as a plain string, not as HTML code. Writing item.snippet.innerHTML doesn't work. It displays an empty list.</p>