I am making a query from an api, the api returns a result snippet like this:
"<span class="searchmatch">Justin</span> Drew <span class="searchmatch">Bieber</span> (/ˈbiːbər/; born March 1, 1994) is a Canadian singer and songwriter. After a talent manager discovered him through his YouTube videos"
when i render it in my component like this:
{this.props.snippet}
it returns a text, but I want to render it as an html element. help?