Слава Україні
Glory to Ukraine
Save the World
Жыве Беларусь
Live Belarus



Урок - XML Helper

Главная » Курсы » Курс CodeIgniter® 2.2 » Урок - XML Helper

Обучающий онлайн курс
CodeIgniter® 2.2

Обучающий курс по CMF CodeIgniter® 2.2.
Лицензия: Лицензия Creative Commons.
↑ Helper Reference
  Урок - XML Helper  
← Предыдущий урок
Урок - URL Helper
  Текущий урок - последний.

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

 

Loading this Helper

 

This helper is loaded using the following code:

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

The following functions are available:

 

xml_convert('string')

 

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);

↑ Helper Reference
  Урок - XML Helper  
← Предыдущий урок
Урок - URL Helper
  Текущий урок - последний.