EE 1
EE 2
TruncHTML

Developer

Oliver Heine - silenz

3rd Party (Free)


Compatibility

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
  • Entry API
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

Truncates HTML/Text after the specified number of characters.

This plugin is used for limiting text to a specified length. Much like the Character Limiter-Plugin that comes with ExpressionEngine.

The difference is, that TruncHTML is HTML-aware, so you can use it to shorten HTML-formatted text and keep the markup without being afraid of breaking it.

Unlike the standard limiter-plugins it does not count characters that belong to HTML-tags and does not cut-off in the middle of tags.

TruncHTML Links

This entry was created October 2, 2008, 2:49 pm.
This entry was last updated June 25, 2013, 4:49 pm.

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!

9 Reviews:

Fat Free Interactive 01.03.14

Rating - {addon_rating_average}

I always use this when I need content excerpts. Well done!

manonfire 03.14.13

Rating - {addon_rating_average}

Add a feature to truncate a specified number of text lines and I would use this.

MetaSushi 07.18.12

MetaSushi
Rating - {addon_rating_average}

It just works.

OwanH 11.12.11

OwanH
Rating - {addon_rating_average}

It’s a shame that I did not remember this add-on before rolling my own plugin to purify/filter HTML/Text input. This add-on really should be native to EE!

Chris Arnold 09.26.11

Rating - {addon_rating_average}

This should be native to EE. It just makes sense.

Bix 11.19.10

Rating - {addon_rating_average}

This should have been a 1st Party EE plugin from the start. But since it isn’t, good thing there is TruncHTML.

Establish 11.09.10

Rating - {addon_rating_average}

Perfect! Was struggling with Word Limiter and Character Limiter when dealing with HTML. Now it’s very simple thanks to TrucHTML. Inline parameters are great.

kellypacker 09.02.10

Rating - {addon_rating_average}

I too struggled with the limits of Word Limiter. The ending and inline parameters are handy flexible.

prosol 06.30.10

Rating - {addon_rating_average}

Switched to this add-on after using word-limiter. Word Limiter was stripping the ending HTML tag from my custom field. TrucHTML doesn’t and worked perfectly.