<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
$plugin_info = array('pi_name' => 'XML Encode', 'pi_version' => '1.3', 'pi_author' => 'Rick Ellis', 'pi_author_url' => 'http://ellislab.com/', 'pi_description' => 'XML Encoding plugin.', 'pi_usage' => Xml_encode::usage());
/**
 * Xml_encode Class
 *
 * @package			ExpressionEngine
 * @category		Plugin
 * @author			EllisLab Dev Team
 * @copyright		Copyright (c) 2004 - 2012, EllisLab, Inc.
 * @link			http://ellislab.com
 */
class Xml_encode
{
    var $return_data;
    /**
     * Constructor
     *
     */
    function Xml_encode($str = '')
    {
        $this->EE =& get_instance();
        $protect_all = $this->EE->TMPL->fetch_param('protect_entities') === 'yes' ? TRUE : FALSE;
        $str = $str == '' ? $this->EE->TMPL->tagdata : $str;
        // Load the XML Helper
        $this->EE->load->helper('xml');
        $str = xml_convert(strip_tags($str), $protect_all);
        // Strip [email] tags
Beispiel #2
0
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$plugin_info = array(
						'pi_name'			=> 'XML Encode',
						'pi_version'		=> '1.3',
						'pi_author'			=> 'Rick Ellis',
						'pi_author_url'		=> 'http://expressionengine.com/',
						'pi_description'	=> 'XML Encoding plugin.',
						'pi_usage'			=> Xml_encode::usage()
					);


/**
 * Xml_encode Class
 *
 * @package			ExpressionEngine
 * @category		Plugin
 * @author			ExpressionEngine Dev Team
 * @copyright		Copyright (c) 2004 - 2011, EllisLab, Inc.
 * @link			http://expressionengine.com/downloads/details/xml_encode/
 */


class Xml_encode {

	var $return_data;	
	
	/**
	 * Constructor
	 *
	 */