--TEST-- Bug #70001 (Assigning to DOMNode::textContent does additional entity encoding) --EXTENSIONS-- dom --FILE-- foo & bar

'); var_dump($element->textContent); $element = (new DOMDocument())->createTextNode('

foo & bar

'); var_dump($element->textContent); $element->textContent = ('

foo & bar

'); var_dump($element->textContent); ?> --EXPECT-- string(16) "

foo & bar

" string(16) "

foo & bar

" string(16) "

foo & bar

"