I have a text area in my ASP.NET web application that is used to enter html code. Now there is a control button that, after clicking, should extract only the text placed between certain html tags in the text field.
For instance:
1) The user type of the html code, including tags, etc., and clicks the OK button 2) In my code, text is extracted from the text area, and only the part between the <p></p> should be saved to a string object.
I obviously can get the text from the text area and attach it to the string object, but I can't figure out how easy it is to get the text in a specific html tag, like <p></p> . Can someone help me please?
source share