1--TEST--
2Dom\HTMLDocument serialization escape text 01
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\HTMLDocument::createFromString("<p></p>", LIBXML_NOERROR);
9$p = $dom->documentElement->firstChild->nextSibling->firstChild;
10$p->textContent = "this is <some> &text! \"\"";
11echo $dom->saveHtml();
12
13?>
14--EXPECT--
15<html><head></head><body><p>this is &lt;some&gt; &amp;text! ""</p></body></html>
16