Mercurial > defr > DualBlog
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/includes/class.domutils.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,12 @@ +<?php + class DOMUtils + { + public function createCDATAWrapper($doc, $wrapperName, $data) + { + $CDATA = $doc->createCDataSection($data); + $wrapper = $doc->createElement($wrapperName); + $wrapper->appendChild($CDATA); + return $wrapper; + } + } +?> \ No newline at end of file