there is an html tag

string html = "<p> text </p>"; 

or

 string html = "<div> text </div>"; 

how to get text?

  • Try to more specific question. What kind of structure can have html? Is it a single tag or maybe a hierarchy of nodes? By what criteria do I need to select "text"? The answer to the current question is: System.Xml.Linq.XElement.Parse("<p>text</p>").Value - Shad

2 answers 2

Example

  • @huxi, Try to write more detailed answers. Explain what your statement is based on. - Nicolas Chabanovsky

And one more example in pursuit: Habr

  • @No_Com, Try to write more detailed answers. Explain what your statement is based on. - Nicolas Chabanovsky