How to convet htmlString into html

Tell us what’s happening:
i’m doing markdown preview project with react. when i pass the converted input to render it’s rendering as string, not as html.
i have tried let doc = new DOMParser().parseFromString(marked(props.text), "text/xml"); but it give me object.

my code

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36.

Link to the challenge:

You should live dangerously :wink: