I have a string as below-
"This is <h2>a place/h2>
<p>You know its a good place!</p>
<ul>
<li>Booked your ticket #20130114074912_AN3P703C on Monday, January 14</li>
</ul>"
So, I want my string to be as follows
"This is a place
You know its a good place.
Booked your ticket #20130114074912_AN3P703C on Monday, January 14"
I believe this is the answer for you. link
try this:
Output: