Churchill A

Churchill A

  • NA
  • 14
  • 0

Display first 1000 words from a long string (Stripping HTML)

Jul 3 2010 7:53 AM
Hi all,
I have a field in my database that holds input from an html input. So I have <tags> in my db column data. What I need is to be able to extract this and display a short version of it as an intro. Maybe even the first paragraph if possible. 

I downloaded the Html Agility Pack for purposes of cleaning up html so now all I need is a function to count and return only the first 1000 words.

Thanks.



Answers (1)