Safe truncation of HTML

This is useful. I just tried it with this

test = " go to http://ole-laursen.blogspot.com/2009/05/safe-truncation-of-html.html "

{{test|urlize|truncatehtml:25}}

And it worked how expected.

Read more comments by Greg Allard