Here is what I am getting as a string. I need to put this inside a <p>
but not able to find any solution
An investment strategy that's sosimple and so effective, we call it the "magic portfolio." It's a way to guarantee that you will beat the market.
I was using
return text.replace(/(<[^>]+>)/g, "");