Updated {shorten} template plugin to use the CodeIgniter text helper, keep whole words, and remove unclosed HTML tags.