CodeIgniter User Guide Version 2.2.6 |
Table of Contents Page |
CodeIgniter Home › User Guide Home › XML Helper |
The XML Helper file contains functions that assist in working with XML data.
This helper is loaded using the following code:
$this->load->helper('xml');
The following functions are available:
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);
Previous Topic: URL Helper · Top of Page · User Guide Home
CodeIgniter · Copyright © 2006 - 2014 · EllisLab, Inc. · Copyright © 2014 - 2015 · British Columbia Institute of Technology