PHP DOM to replace html

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • variaas
    New Member
    • Jun 2007
    • 8

    PHP DOM to replace html

    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:

    Code:
    $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
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    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

    Comment

    Working...