We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Add-Ons
default app icon

Character Limit

By Packet Tide
Templating Utilities
Free

Description

Limit the number of characters displayed in any arbitrary text.

Wrap anything you want to be processed between the tag pairs.

{exp:char_limit total="100" exact="no"}
    text you want processed
{/exp:char_limit}

The “total” parameter lets you specify the number of characters. The “exact” parameter will truncate the string exact to the “limit” The “strip_tags” parameter will remove any HTML tags from the input string The “force_ellipses” parameter will add ellipses to the output when exact is used and the result is trimmed

Note: When exact=”no” this tag will always leave entire words intact so you may get a few additional characters than what you specify.

Information
Version 2.0.1
Last Update 4 years ago
Compatibility EE 6, 5, 4, 3
License MIT
Links
  • Documentation
  • Change Log
  • Support
Free
ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.