Mercurial > defr > DualBlog
view includes/class.domutils.php @ 0:629389204276
Import initial
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Sat, 20 Oct 2007 14:15:10 +0200 |
parents | |
children |
line wrap: on
line source
<?php class DOMUtils { public function createCDATAWrapper($doc, $wrapperName, $data) { $CDATA = $doc->createCDataSection($data); $wrapper = $doc->createElement($wrapperName); $wrapper->appendChild($CDATA); return $wrapper; } } ?>