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: 466
php
|domdocument
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:
<input type="text" name="lastName" >
But i want to disable htmlentities. How can i do?
© Stack Overflow or respective owner