How can I convert in JavaScript/ReactJS into string.
For example I have an object:
{
article: '<p class="md-block-unstyled">First text...</p><p>Second text></p>'
}
I want to convert it and render a paragraph:
First Text... Second text
I don't want the <p>
tag or any others tag to be printed on the screen but I want them to behave as actual paragraphs.