Friday, March 29, 2013

how can i remove an outer <p>…</p> from a string 
 
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml("<p> around the text (ending with </p>");
string result = doc.DocumentNode.FirstChild.InnerHtml;
 
 
myString.Substring(3, myString.Length-7) 

No comments:

Post a Comment