Mercurial > defr > DualBlog
view includes/class.domutils.php @ 65:434751e80c88
Utilisation de la classe Requete dans tb.php
Cela permet de gérer automatiquement l'ajout des quotes si on a pas de
magic_quotes notamment, empechant les injections SQL :-)
| author | Franck Deroche <webmaster@defr.org> |
|---|---|
| date | Tue, 11 Mar 2008 16:33:07 +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; } } ?>
