I have a text area in my ASP.NET web application that is used to enter html code. Now there is also an button control, which upon clicking should retrieve just the text placed between certain html tags in the text box.
For example:
1) User types html code including tags etc. and clicks the OK button
2) In my code the text from the text area is retrieved and only the part between a <p></p>
tag should be saved to a string object.
I can obviously get the text from the text area and attach it to a string object but I am not able to work out how to just get text within a certain html tag like <p></p>
. Could someone help me out please?