Connecting Tech Pros Worldwide Forums | Help | Site Map

PHP DOM to replace html

Newbie
 
Join Date: Jun 2007
Posts: 8
#1: Jan 13 '08
I'm writing a plugin for my CMS where I used PHP DOM to update the DOM. I want to replace part of the DOM with some HTML. When I perform:

Expand|Select|Wrap|Line Numbers
  1. $domelement->nodeValue = $html;
It converts the html entities and displays all the code. From my research the nodeValue considers the cotnents to be CDATA and I figure this is causing my issue.

Is there a way to replace the HTML of a DOMElement with PHP?

ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#2: Feb 15 '08

re: PHP DOM to replace html


It seems that no one had any or enough experience with this (I certainly have not). We are sorry we could not help you.

Maybe we can help you better next time.

moderator
Reply