php, checking correctnes of text splitting
        Posted  
        
            by Ferol
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ferol
        
        
        
        Published on 2010-04-27T13:38:50Z
        Indexed on 
            2010/04/27
            13:43 UTC
        
        
        Read the original article
        Hit count: 274
        
I need to split html document on two parts. First part, should contain N(30) words, and next one should contain everything else. And the main problem, is to prevent splitting tags (description and body of tags). Give me please suggestions (or if you have already written such function, please share your code), how to realize it! Thanks.
© Stack Overflow or respective owner