From e0da15316d6a00334cd3c56421ad361453bd4281 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Tue, 7 Jan 2014 16:17:04 +0200 Subject: [ci skip] Update the Text helper docs --- user_guide_src/source/helpers/text_helper.rst | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'user_guide_src/source') diff --git a/user_guide_src/source/helpers/text_helper.rst b/user_guide_src/source/helpers/text_helper.rst index 0cacd1b69..3c6430f3f 100644 --- a/user_guide_src/source/helpers/text_helper.rst +++ b/user_guide_src/source/helpers/text_helper.rst @@ -35,7 +35,7 @@ The following functions are available: $string = "Here is a nice text string consisting of eleven words."; $string = word_limiter($string, 4); - // Returns: Here is a nice… + // Returns: Here is a nice The third parameter is an optional suffix added to the string. By default it adds an ellipsis. @@ -56,7 +56,7 @@ The following functions are available: $string = "Here is a nice text string consisting of eleven words."; $string = character_limiter($string, 20); - // Returns: Here is a nice text string… + // Returns: Here is a nice text string The third parameter is an optional suffix added to the string, if undeclared this helper uses an ellipsis. @@ -143,7 +143,7 @@ The following functions are available: colors used are the ones specified in your php.ini file. -.. function:: highlight_phrase($str, $phrase[, $tag_open = ''[, $tag_close = '']]) +.. function:: highlight_phrase($str, $phrase[, $tag_open = ''[, $tag_close = '']]) :param string $str: Input string :param string $phrase: Phrase to highlight @@ -165,6 +165,16 @@ The following functions are available: Here is a nice text string about nothing in particular. + .. note:: This function used to use the ```` tag by default. Older browsers + might not support the new HTML5 mark tag, so it is recommended that you + insert the following CSS code into your stylesheet if you need to support + such browsers:: + + mark { + background: #ff0; + color: #000; + }; + .. function:: word_wrap($str[, $charlim = 76]) -- cgit v1.2.3-24-g4f1b