I\'m trying to parse a document and get all the image tags and change the source for something different.
$domDocument = new DOMDocument(); $domDo
DomDocument is unfortunately retarded and won't let you do this. Try this:
$text = preg_replace('/^/', '', str_replace( array('', '', '', ''), array('', '', '', ''), $domDocument->saveHTML()));