adds a ellipsize filter

this is borrowed from codeigniter's helpers. I found it useful, maybe it
can help others.