Mercurial > defr > DualBlog
view includes/class.domutils.php @ 88:1f2410012dbc
comment.php: Utilisation de Requete via Factory
author | Franck Deroche <franck@defr.org> |
---|---|
date | Thu, 13 Dec 2018 00:54:31 +0100 |
parents | 629389204276 |
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; } } ?>