It's a React-Native application, so I can not go for DOM
I have a HTML as a string let's say,
let str = "<p>Research not to discover what’s already there, but to discover what’s not.</p>\n",
I am able to parse it using Regex
str.replace(/<\/?[^>]+(>|$)/g, "")
But the output of this is,
"Research not to discover what’s already there, but to discover what’s not.
"
which is still have HTML code in it what’s
How I can I replace it with what's