shorten a word in a block of text
        Posted  
        
            by David
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by David
        
        
        
        Published on 2010-03-15T09:48:53Z
        Indexed on 
            2010/03/15
            9:49 UTC
        
        
        Read the original article
        Hit count: 649
        
I have a block of text which occasionally has a really long word/web address which breaks out of my site's layout.
What is the best way to go through this block of text and shorten the words?
© Stack Overflow or respective owner