cgiffard / Downsize

Tag safe text truncation for HTML and XML!
BSD 3-Clause "New" or "Revised" License
41 stars 13 forks source link

Fix for issue where empty tags are left appended to output. #9

Closed adam-zethraeus closed 10 years ago

adam-zethraeus commented 10 years ago

Change ensures that immediate break from parsing occurs when the character or word limit is hit. Includes test.

relates to: https://github.com/cgiffard/Downsize/issues/8