summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide_src/source/helpers')
-rw-r--r--user_guide_src/source/helpers/text_helper.rst2
-rw-r--r--user_guide_src/source/helpers/xml_helper.rst34
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. &#123;. Example::
+ This function ignores ampersands if they are part of existing numbered
+ character entities, e.g. &#123;. Example::
- $string = '<p>Here is a paragraph & an entity (&#123;).</p>';
- $string = xml_convert($string);
- echo $string;
+ $string = '<p>Here is a paragraph & an entity (&#123;).</p>';
+ $string = xml_convert($string);
+ echo $string;
- outputs:
+ outputs:
- .. code-block:: html
+ .. code-block:: html
- &lt;p&gt;Here is a paragraph &amp; an entity (&#123;).&lt;/p&gt;
+ &lt;p&gt;Here is a paragraph &amp; an entity (&#123;).&lt;/p&gt;