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>&lt;p&gt;testtext &amp;nbsp; somemoretext&lt;/p&gt;&#13; &#13; &lt;p&gt;&amp;nbsp;&lt;/p&gt;&#13; &lt;?php echo ('php!');?&gt;</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

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -