From ba231aab2b26279f536a52bf4ccdb4af0d191570 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 20 Jan 2014 16:43:41 +0200 Subject: [ci skip] Replace incorrect usage of 'then', where it should be 'than' --- user_guide_src/source/helpers/text_helper.rst | 2 +- user_guide_src/source/helpers/xml_helper.rst | 34 +++++++++++++-------------- 2 files changed, 18 insertions(+), 18 deletions(-) (limited to 'user_guide_src/source/helpers') diff --git a/user_guide_src/source/helpers/text_helper.rst b/user_guide_src/source/helpers/text_helper.rst index 3c6430f3f..788fe8b0c 100644 --- a/user_guide_src/source/helpers/text_helper.rst +++ b/user_guide_src/source/helpers/text_helper.rst @@ -50,7 +50,7 @@ The following functions are available: Truncates a string to the number of *characters* specified. It maintains the integrity of words so the character count may be slightly - more or less then what you specify. + more or less than what you specify. Example:: diff --git a/user_guide_src/source/helpers/xml_helper.rst b/user_guide_src/source/helpers/xml_helper.rst index 6d26c581e..7d155e192 100644 --- a/user_guide_src/source/helpers/xml_helper.rst +++ b/user_guide_src/source/helpers/xml_helper.rst @@ -28,27 +28,27 @@ The following functions are available: .. function:: xml_convert($str[, $protect_all = FALSE]) - :param string $str: the text string to convert - :param bool $protect_all: Whether to protect all content that looks like a potential entity instead of just numbered entities, e.g. &foo; - :returns: string + :param string $str: the text string to convert + :param bool $protect_all: Whether to protect all content that looks like a potential entity instead of just numbered entities, e.g. &foo; + :returns: string - Takes a string as input and converts the following reserved XML - characters to entities: + Takes a string as input and converts the following reserved XML + characters to entities: - - Ampersands: & - - Less then and greater than characters: < > - - Single and double quotes: ' " - - Dashes: - + - Ampersands: & + - Less than and greater than characters: < > + - Single and double quotes: ' " + - Dashes: - - This function ignores ampersands if they are part of existing numbered - character entities, e.g. {. Example:: + This function ignores ampersands if they are part of existing numbered + character entities, e.g. {. Example:: - $string = '

Here is a paragraph & an entity ({).

'; - $string = xml_convert($string); - echo $string; + $string = '

Here is a paragraph & an entity ({).

'; + $string = xml_convert($string); + echo $string; - outputs: + outputs: - .. code-block:: html + .. code-block:: html - <p>Here is a paragraph & an entity ({).</p> + <p>Here is a paragraph & an entity ({).</p> -- cgit v1.2.3-24-g4f1b