summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/helpers/xml_helper.rst
blob: be848bcd1c85643645c09b01f07b051329ba08ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
##########
XML Helper
##########

The XML Helper file contains functions that assist in working with XML
data.

.. contents:: Page Contents

Loading this Helper
===================

This helper is loaded using the following code

::

	$this->load->helper('xml');

The following functions are available:

xml_convert()
=====================

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: -

This function ignores ampersands if they are part of existing character
entities. Example

::

	$string = xml_convert($string);