Location: PHPKode > scripts > Ladybug > Ladybug-0.6/lib/Ladybug/Extension/Object/DOMDocument.php
<?php
/*
 * Ladybug: Simple and Extensible PHP Dumper
 *
 * Oject/DomDocument dumper
 *
 * (c) Raúl Fraile Beneyto <hide@address.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Ladybug\Extension\Object;

use Ladybug\Dumper;
use Ladybug\Extension\ExtensionBase;

class DOMDocument extends ExtensionBase
{
    public function dump($var)
    {
        $var->formatOutput = true;
        $xml = htmlentities($var->saveXML());

        return $xml;
    }

}
Return current item: Ladybug