Split a html string in N parts

Posted by Matt Brailsford on Stack Overflow See other posts from Stack Overflow or by Matt Brailsford
Published on 2010-05-01T13:41:11Z Indexed on 2010/05/01 13:47 UTC
Read the original article Hit count: 344

Filed under:
|
|

Hi Guys,

Does anybody have an example of spliting a html string (coming from a tiny mce editor) and splitting it into N parts using C#?

I need to split the string evenly without splitting words.

I was thinking of just splitting the html and using the HtmlAgilityPack to try and fix the broken tags. Though I'm not sure how to find the split point, as Ideally it should be based purley on the text rather than the html aswell.

Anybody got any ideas on how to go about this?

Many thanks

Matt

© Stack Overflow or respective owner

Related posts about c#

Related posts about regex