text_helper.php
system/Helpers/text_helper.php
20 fn
word_limiter
(string $str, int $limit = 100, string $endChar = '…')
character_limiter
(string $string, int $limit = 500, string $endChar = '…')
ascii_to_entities
(string $str)
entities_to_ascii
(string $str, bool $all = true)
word_censor
(string $str, array $censored, string $replacement = '')
highlight_code
(string $str)
highlight_phrase
(string $str, string $phrase, string $tagOpen = '<mark>', string $tagClose = '</mark>')
convert_accented_characters
(string $str)
word_wrap
(string $str, int $charlim = 76)
ellipsize
(string $str, int $maxLength, $position = 1, string $ellipsis = '…')
strip_slashes
($str)
strip_quotes
(string $str)
quotes_to_entities
(string $str)
reduce_double_slashes
(string $str)
reduce_multiples
(string $str, string $character = ',', bool $trim = false)
random_string
(string $type = 'alnum', int $len = 8)
_from_random
(int $length, string $pool)
increment_string
(string $str, string $separator = '_', int $first = 1)
alternator
(...$args)
excerpt
(string $text, ?string $phrase = null, int $radius = 100, string $ellipsis = '...')