Get back PHP-code from XML -
i have xml files "pages" website. faced bad situation: when tried put php-code inside xml saves well:
<content><p>testtext &nbsp; somemoretext</p> <p>&nbsp;</p> <?php echo ('php!');?></content>
but! when echoing through simple xml ok except php-code, reason it's commented out now! <!--?php echo ('1');?-->
just in case if saving process important:
$content = htmlspecialchars($_post['editor1']);//safe string $rec = $xml->createelement("content", $content);//saving $root->appendchild($rec);
need masterpiece guys!!!
Comments
Post a Comment