Adding the ability to strip markup from the output using an additional parameter.
Fixing issue with length not being calculated correctly. Output was bring
trimmed after truncating/cleaning, resulting in a (sometimes) much shorter
string than requested. Modified to trim the input before truncation.
Fixing my indenting.
Merge pull request #1 from JamesMcFall/master

Hi Charlie, here's a bug fix and one new feature.