1..56 # truncate_text() - does nothing on an empty string - truncates to 30 characters by default - adds ... to truncated text - takes the max length as its second argument - takes the ... text as its third argument - accepts a truncate lastspace boolean as its fourth argument - accepts a truncate lastspace boolean as its fourth argument - handles unicode characters using mbstring if available - sets back the internal encoding in case it changes it # highlight_text() - highlights a word given as its second argument - highlights all occurrences of a word given as its second argument - takes a pattern as its third argument - returns an empty string if input is empty - returns an empty string if input is empty - does nothing is string to highlight is not present - returns input if string to highlight is not present - escapes search string to be safe in a regex - escapes search string to be safe in a regex - escapes search string to be safe in a regex - escapes search string to be safe in a regex # excerpt_text() - return an empty string if argument is empty - return an empty string if phrase is empty - creates an excerpt of a text - creates an excerpt of a text - creates an excerpt of a text - takes a fifth argument allowing excerpt on whitespace - takes a fifth argument allowing excerpt on whitespace - takes a fifth argument allowing excerpt on whitespace - does nothing if the search string is not in input # wrap_text() - wraps long lines with a default of 80 - takes a line length as its second argument - takes a line length as its second argument # simple_format_text() - replaces \n by
- replaces \n\n by

- replaces \n\n\n\n by

- wrap all string with

- Ticket #6824 # text_strip_links() - strips all links in input - strips all links in input # auto_link_text() - converts emails to links - converts absolute URLs to links - takes a second parameter - converts emails and URLs if no second argument is given - converts URLs to links - converts URLs to links - converts URLs to links even if link does not start with http:// - converts URLs to links - converts URLs to links - converts URLs to links - converts URLs to links - truncates URLs in links - takes truncation parameters - converts URLs with complex fragments to links - converts URLs with complex fragments and trailing text to links - does not double-link emails - does not double-link emails # Looks like everything went fine.