diff options
Diffstat (limited to 'user_guide_src/source/helpers')
-rw-r--r-- | user_guide_src/source/helpers/text_helper.rst | 2 | ||||
-rw-r--r-- | user_guide_src/source/helpers/xml_helper.rst | 34 |
2 files changed, 18 insertions, 18 deletions
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 = '<p>Here is a paragraph & an entity ({).</p>'; - $string = xml_convert($string); - echo $string; + $string = '<p>Here is a paragraph & an entity ({).</p>'; + $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> |