Kishor Makwana

SQL

  • Home
  • SoftWare
  • Fevorite Links
  • Contact Us
  • SQL

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) 
Posted by kishor makwana at 1:03 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2025 (9)
    • ►  May (5)
    • ►  April (4)
  • ►  2021 (8)
    • ►  March (8)
  • ►  2020 (5)
    • ►  July (5)
  • ►  2017 (2)
    • ►  March (1)
    • ►  January (1)
  • ►  2016 (1)
    • ►  July (1)
  • ►  2015 (2)
    • ►  December (1)
    • ►  June (1)
  • ►  2014 (1)
    • ►  June (1)
  • ▼  2013 (5)
    • ►  December (1)
    • ►  July (1)
    • ►  April (2)
    • ▼  March (1)
      • how can i remove an outer <p>…</p> from a string ...
  • ►  2012 (4)
    • ►  December (3)
    • ►  September (1)

ABOUT ME

kishor makwana
View my complete profile

Visitors

Kishor Makwana. Simple theme. Powered by Blogger.