How can I do somethink like this with PHP DOM?
<img src="<?php echo $picsrc; ?>">
This Code
$node->setAttribute('src','<?php echo $picsrc;?>');
does escape the PHP Tag.
<img src="<?php echo $picsrc; ?>">
Is there a way to use
$dom->createProcessingInstruction()
for Attribute Values?
<?php echo ..?>try$picsrcdirectly,$node->setAttribute('src',$picsrc);