blob: be848bcd1c85643645c09b01f07b051329ba08ac [file] [log] [blame]
Derek Jones8ede1a22011-10-05 13:34:52 -05001##########
2XML Helper
3##########
4
5The XML Helper file contains functions that assist in working with XML
6data.
7
8.. contents:: Page Contents
9
10Loading this Helper
11===================
12
13This helper is loaded using the following code
14
15::
16
17 $this->load->helper('xml');
18
19The following functions are available:
20
21xml_convert()
22=====================
23
24Takes a string as input and converts the following reserved XML
25characters to entities:
26
27- Ampersands: &
28- Less then and greater than characters: < >
29- Single and double quotes: ' "
30- Dashes: -
31
32This function ignores ampersands if they are part of existing character
33entities. Example
34
35::
36
37 $string = xml_convert($string);
38