html - PHP DOMDocument prevent closing tag from being auto-generated if it is not provided -


currently, domdocument php object auto-generates closing tag if doesn't exist. prevent behavior happening. here's example: <div><p>text</p> add closing </div tag it.

it's funny because there libxml option called libxml_noemptytag, forces create closing tag. however, opposite of that.


Comments