Php DOMDocument Htmlentities problem

Posted by scopus on Stack Overflow See other posts from Stack Overflow or by scopus
Published on 2010-03-28T03:27:41Z Indexed on 2010/03/28 3:33 UTC
Read the original article Hit count: 463

Filed under:
|

Hi, I use DOMDocument. My code here.

$dom = new DOMDocument('1.0', 'utf-8');
$textNode = $dom->createTextNode('<input type="text" name="lastName" />');
$dom->appendChild($textNode);
echo $dom->saveHTML();

Output:

&lt;input type="text" name="lastName" &gt;

But i want to disable htmlentities. How can i do?

© Stack Overflow or respective owner

Related posts about php

Related posts about domdocument