Brett DeWoody

3rd Party (Free)

920 downloads (last 90 days)

MIT License Download v1.07

EE Version Support

  • ExpressionEngine 2


If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher


  • jQuery for the Control Panel

Add-On Type(s)



Hacksaw takes your entry's content and whittles it down to a more manageable size. It strips the HTML and limits the excerpts by character count, word count or cutoff marker.

To use Hacksaw simply wrap the content you want to truncate with the exp:eehive_hacksaw tag, like this:


There are several parameters you can use to control how the content is truncated. These options are:

chars   = “”    // Limit by number of characters
words   = “”    // Limit by number of words
cutoff = “”    // Limit by a specific cutoff string
append = “”    // String to append to the end of the excerpt
allow   = “”    // HTML tags you want to allow. Ex allow=”<b><a>”

For example, if you want to limit your excerpt to 100 words you would do this:

{exp:eehive_hacksaw words="100"}

By default Hacksaw will strip all HTML from your excerpt. If you would like to keep some basic HTML you can use the ‘allow’ parameter to keep specific HTML tags. For example, let’s say you want to keep <p> and <b> tags:

{exp:eehive_hacksaw words="100" allow="<p><b>"}

This would strip all HTML except paragraph (<p>) and bold (<b>) tags.

Another way to limit content is by a cutoff string. This is similar to the way Wordpress’s “more” feature works. In your content you could add a specific string to indicate the spot you want the excerpt to stop. Let’s say you use “<!—END—>”. To cut the excerpt off at this location you would do this:

{exp:eehive_hacksaw cutoff="<!-- END -->"}

The ‘cutoff’ parameter can be coupled with the ‘words’ parameter in case you forget to add the cutoff string to some of your entries. This way the excerpt will be truncated at the cutoff string, OR after X words.

You can add any string at the end of the excerpt using the ‘append’ parameter, like this:

{exp:eehive_hacksaw words="100" append="..."}

This would append “...” to the end of the excerpt.

Download Hacksaw

EE Support Downloads Add-On Version Release Date
2.2.0+ Download 1.07 Dec 6, 2011

This entry was created November 22, 2010, 4:15 pm.
This entry was last updated December 3, 2014, 11:17 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

16 Reviews:

Alex Roper 05.26.16

Alex Roper
Rating - {addon_rating_average}

NOTE: This add-on is no longer supported or maintained by it’s creator. It’s labeled as INACTIVE on his Github page: https://github.com/brettdewoody/INACTIVE-Hacksaw-for-ExpressionEngine
It’s a shame since I was a fan of this plugin and used it regularly.

monkeydo 02.27.14

Rating - {addon_rating_average}

Great little plugin. Only thing I’d love more is if it also converted quote into entities (for meta tags etc).

alamode 11.26.13

Rating - {addon_rating_average}

I keep finding newer ways that this can be used in useful ways. It’s quickly becoming a favorite!

stian 09.21.13

Rating - {addon_rating_average}

Nothing short of superb! Thank you so much for this!

angie 05.08.13

Rating - {addon_rating_average}

Works flawlessly. Will be replacing TruncHTML for me. :)

Loughlin 02.25.13

Rating - {addon_rating_average}

Cool little plugin, very handy and works like a charm

Kenny Fraser 11.20.12

Kenny Fraser
Rating - {addon_rating_average}

Does the job nicely, thanks!

Sneed's Feed & Seed 09.03.12

Sneed's Feed & Seed
Rating - {addon_rating_average}

It doesn’t automatically close tags if the cutoff is in the middle of a tag pair. I’ve tried to get support on this issue, but have been unsuccessful.

Percipio 07.30.12

Rating - {addon_rating_average}

Never had a single issue with this. Great Job.

Matthew81 07.20.12

Rating - {addon_rating_average}

Fantastic add-on. I tried several of the truncating add-ons and this is the only one that works simply and reliably.

dvl 02.01.12

Rating - {addon_rating_average}

works great! thanks!

Gummibear Lab 11.16.11

Gummibear Lab
Rating - {addon_rating_average}

This needs 6 stars. Now we can really have control on excerpts like we have in wordpress.

LucasHSquared 09.15.11

Rating - {addon_rating_average}

Awesome little plugin.  I will definitely be using this on all EE sites from now on!

CreateSean 08.23.11

Rating - {addon_rating_average}

Brilliant - now replacing trunchtml in my installs.

BA Creative 07.20.11

BA Creative
Rating - {addon_rating_average}

Essential! the tag stripping is something other plugins like this often overlook.

Martin Luff 02.14.11

Martin Luff
Rating - {addon_rating_average}

Does exactly what it says ;) Great if you need something like TruncHTML but need to strip out things like images and formatting… which is very, very useful in some situations; e.g. I’ve used it a lot to make search results uniform where I’m pulling from all sorts of content.