Php DOMDocument Htmlentities problem
- by scopus
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?