how to get only the first tag contents in asp.net c
Hi sir,
I am getting the string like below, i need to get only the first <p> </p> tag contents. Kindly give me the solution for this problem.
Input:
********
<p>You should step up and use some of this amazing energy to take action -- the world needs what you've got! It's a really good day for some parties, startups and other fun things that just need some initiative.</p><p>More horoscopes! Check your , , , , , ...</p><p>Today's Free Sample Reading: </p><p></p>
Output:
**********
<p>You should step up and use some of this amazing energy to take action -- the world needs what you've got! It's a really good day for some parties, startups and other fun things that just need some initiative.</p>