let html=”
Some data
some more data
with
some other data
need to convert into string
”
I want it should be become a single string like
str=”Some data, some more data, some other data, need to convert into string”;
This I need in Reactjs functionality.
In comment section I have shared the details more