--TEST-- Dom\HTMLDocument serialization escape attribute --EXTENSIONS-- dom --FILE--

", LIBXML_NOERROR); $p = $dom->documentElement->firstChild->nextSibling->firstChild; $p->setAttribute("foo", "\"'&"); echo $dom->saveHtml(); ?> --EXPECT--