1 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en">
3 <title>CarbonPHP Documentation
</title>
4 <style type=
"text/css">
11 background: transparent
;
12 border-bottom: 1px dotted
#666;
14 text-decoration: none
;
22 font-family: "Lucida Sans Unicode", "Lucida Grande";
44 margin: 10px 0 10px 0;
45 list-style-position: inside
;
53 border: 1px dotted
#444;
61 border: 1px solid
#ccc;
74 <p>The XML utlity contains functions that help when working with XML data. You load this utility using the
75 following piece of code.
</p>
78 $this-
>load-
>utility('xml');
83 <h1>xml_convert('string')
</h1>
85 <p>This function takes a string as input and converts the following XML characters to entities.
</p>
88 <li>Ampersands:
&</li>
89 <li>Less than and greater than:
< ></li>
90 <li>Single and double quotes: '
"</li>
94 <p>This function ignores ampersands if they are part of existing character entities.</p>
96 <div class="examples
">
97 $string = xml_convert($string);