1..56 # truncate_text() ok 1 - text_truncate() does nothing on an empty string ok 2 - text_truncate() truncates to 30 characters by default ok 3 - text_truncate() adds ... to truncated text ok 4 - text_truncate() takes the max length as its second argument ok 5 - text_truncate() takes the ... text as its third argument ok 6 - text_truncate() accepts a truncate lastspace boolean as its fourth argument ok 7 - text_truncate() accepts a truncate lastspace boolean as its fourth argument ok 8 - text_truncate() handles unicode characters using mbstring if available ok 9 - text_truncate() sets back the internal encoding in case it changes it # highlight_text() ok 10 - text_highlighter() highlights a word given as its second argument ok 11 - text_highlighter() highlights all occurrences of a word given as its second argument ok 12 - text_highlighter() takes a pattern as its third argument ok 13 - text_highlighter() returns an empty string if input is empty ok 14 - text_highlighter() returns an empty string if input is empty ok 15 - text_highlighter() does nothing is string to highlight is not present ok 16 - text_highlighter() returns input if string to highlight is not present ok 17 - text_highlighter() escapes search string to be safe in a regex ok 18 - text_highlighter() escapes search string to be safe in a regex ok 19 - text_highlighter() escapes search string to be safe in a regex ok 20 - text_highlighter() escapes search string to be safe in a regex # excerpt_text() ok 21 - text_excerpt() return an empty string if argument is empty ok 22 - text_excerpt() return an empty string if phrase is empty ok 23 - text_excerpt() creates an excerpt of a text ok 24 - text_excerpt() creates an excerpt of a text ok 25 - text_excerpt() creates an excerpt of a text ok 26 - text_excerpt() takes a fifth argument allowing excerpt on whitespace ok 27 - text_excerpt() takes a fifth argument allowing excerpt on whitespace ok 28 - text_excerpt() takes a fifth argument allowing excerpt on whitespace ok 29 - text_excerpt() does nothing if the search string is not in input # wrap_text() ok 30 - wrap_text() wraps long lines with a default of 80 ok 31 - wrap_text() takes a line length as its second argument ok 32 - wrap_text() takes a line length as its second argument # simple_format_text() ok 33 - text_simple_format() replaces \n by
ok 34 - text_simple_format() replaces \n\n by

ok 35 - text_simple_format() replaces \n\n\n\n by

ok 36 - text_simple_format() wrap all string with

ok 37 - text_simple_format() Ticket #6824 # text_strip_links() ok 38 - text_strip_links() strips all links in input ok 39 - text_strip_links() strips all links in input # auto_link_text() ok 40 - auto_link_text() converts emails to links ok 41 - auto_link_text() converts absolute URLs to links ok 42 - auto_link_text() takes a second parameter ok 43 - auto_link_text() converts emails and URLs if no second argument is given ok 44 - auto_link_text() converts URLs to links ok 45 - auto_link_text() converts URLs to links ok 46 - auto_link_text() converts URLs to links even if link does not start with http:// ok 47 - auto_link_text() converts URLs to links ok 48 - auto_link_text() converts URLs to links ok 49 - auto_link_text() converts URLs to links ok 50 - auto_link_text() converts URLs to links ok 51 - auto_link_text() truncates URLs in links ok 52 - auto_link_text() takes truncation parameters ok 53 - auto_link_text() converts URLs with complex fragments to links ok 54 - auto_link_text() converts URLs with complex fragments and trailing text to links ok 55 - auto_link_text() does not double-link emails ok 56 - auto_link_text() does not double-link emails # Looks like everything went fine.