summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/helpers/text_helper.rst
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide_src/source/helpers/text_helper.rst')
-rw-r--r--user_guide_src/source/helpers/text_helper.rst24
1 files changed, 12 insertions, 12 deletions
diff --git a/user_guide_src/source/helpers/text_helper.rst b/user_guide_src/source/helpers/text_helper.rst
index 88a6d0658..d1723c58a 100644
--- a/user_guide_src/source/helpers/text_helper.rst
+++ b/user_guide_src/source/helpers/text_helper.rst
@@ -24,7 +24,7 @@ Available Functions
The following functions are available:
-.. function:: word_limiter($str[, $limit = 100[, $end_char = '…']])
+.. php:function:: word_limiter($str[, $limit = 100[, $end_char = '…']])
:param string $str: Input string
:param int $limit: Limit
@@ -42,7 +42,7 @@ The following functions are available:
default it adds an ellipsis.
-.. function:: character_limiter($str[, $n = 500[, $end_char = '…']])
+.. php:function:: character_limiter($str[, $n = 500[, $end_char = '…']])
:param string $str: Input string
:param int $n: Number of characters
@@ -64,9 +64,9 @@ The following functions are available:
undeclared this helper uses an ellipsis.
.. note:: If you need to truncate to an exact number of characters please
- see the :func:`ellipsize()` function below.
+ see the :php:func:`ellipsize()` function below.
-.. function:: ascii_to_entities($str)
+.. php:function:: ascii_to_entities($str)
:param string $str: Input string
:returns: A string with ASCII values converted to entities
@@ -84,17 +84,17 @@ The following functions are available:
$string = ascii_to_entities($string);
-.. function::entities_to_ascii($str[, $all = TRUE])
+.. php:function::entities_to_ascii($str[, $all = TRUE])
:param string $str: Input string
:param bool $all: Whether to convert unsafe entities as well
:returns: A string with HTML entities converted to ASCII characters
:rtype: string
- This function does the opposite of :func:`ascii_to_entities()`.
+ This function does the opposite of :php:func:`ascii_to_entities()`.
It turns character entities back into ASCII.
-.. function:: convert_accented_characters($str)
+.. php:function:: convert_accented_characters($str)
:param string $str: Input string
:returns: A string with accented characters converted
@@ -112,7 +112,7 @@ The following functions are available:
`application/config/foreign_chars.php` to define the to and
from array for transliteration.
-.. function:: word_censor($str, $censored[, $replacement = ''])
+.. php:function:: word_censor($str, $censored[, $replacement = ''])
:param string $str: Input string
:param array $censored: List of bad words to censor
@@ -131,7 +131,7 @@ The following functions are available:
$disallowed = array('darn', 'shucks', 'golly', 'phooey');
$string = word_censor($string, $disallowed, 'Beep!');
-.. function:: highlight_code($str)
+.. php:function:: highlight_code($str)
:param string $str: Input string
:returns: String with code highlighted via HTML
@@ -145,7 +145,7 @@ The following functions are available:
colors used are the ones specified in your php.ini file.
-.. function:: highlight_phrase($str, $phrase[, $tag_open = '<mark>'[, $tag_close = '</mark>']])
+.. php:function:: highlight_phrase($str, $phrase[, $tag_open = '<mark>'[, $tag_close = '</mark>']])
:param string $str: Input string
:param string $phrase: Phrase to highlight
@@ -178,7 +178,7 @@ The following functions are available:
color: #000;
};
-.. function:: word_wrap($str[, $charlim = 76])
+.. php:function:: word_wrap($str[, $charlim = 76])
:param string $str: Input string
:param int $charlim: Character limit
@@ -195,7 +195,7 @@ The following functions are available:
// Would produce: Here is a simple string of text that will help us demonstrate this function
-.. function:: ellipsize($str, $max_length[, $position = 1[, $ellipsis = '&hellip;']])
+.. php:function:: ellipsize($str, $max_length[, $position = 1[, $ellipsis = '&hellip;']])
:param string $str: Input string
:param int $max_length: String length limit