. * * @file * @ingroup Skins */ namespace Skins\Chameleon\Components; /** * The Html class. * * This component allows insertion of raw HTML into the page. * * @author Stephan Gambke * @since 1.0 * @ingroup Skins */ class Html extends Component { /** * Builds the HTML code for the main container * * @return String the HTML code */ public function getHtml() { $ret = ''; if ( $this->getDomElement() !== null ) { $dom = $this->getDomElement()->ownerDocument; foreach ( $this->getDomElement()->childNodes as $node ) { $ret .= $dom->saveHTML( $node ); } } return $ret; } }