Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
ExpressionEngine Add-on
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
word_safe
README.md

README.md

Word-Safe

Prevents words from being longer than a certain length

{exp:word_safe length="25" option="breakup"}

    {comment}

{/exp:word_safe}

Parameters:

  • length - Maximum character length for a word (default is 25).
  • option - What to do with words that exceed the maximum length.
    • option="breakup" - Breaks up word with spaces. No chunk will ever exceed the maximum length.
    • option="remove" - Removes the word
    • option="shorten" (default) - Removes any characters after the maximum length has been reached
  • safe_pre (y/n) - If set to 'y' (default), any content in a
     tag are exempt from the maximum word length rule. If set to 'n', then the contents of a 
     tag are treated like any other content.
  • safe_urls (y/n) - If set to 'y' (default), the content in and tags are ignored and thus the URLs are safe from the maximum word length. If set to 'n', then the contents of the and tags will be treated likes words.

Change Log

  • 1.3
    • Updated plugin to be 2.0 compatible
  • 1.2
    • Fixed bug where entities were being broken up, just like a boy band.
  • 1.1
    • Fixed bug where the breakup setting the letter at the break was duplicated.
Something went wrong with that request. Please try again.