XML 辅助函数
xml助手函数文件包含了一些辅助处理xml数据的函数
加载该辅助函数
本辅助函数通过如下代码加载:
$this->load->helper('xml');
可用函数如下:
xml_convert('string')
以一个字符串(string)作为输入并且转换下列xml保留字符成为实体(entities):
Ampersands: &
Less then and greater than characters: < >
Single and double quotes: ' "
Dashes: -
该函数将忽略 & 如果他们是存在的字符实体的一部分。例如:
$string = xml_convert($string);
翻译贡献者:
fdasf, Hex, weide, zhupeng
最后修改: 2008-06-23 21:33:41