Prabu Spark

Prabu Spark

  • NA
  • 124
  • 199.5k

how to get only the first tag contents in asp.net c

Dec 11 2013 7:47 AM
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>

Answers (1)