php - How to saveHTML of DOMDocument without HTML wrapper ...
The issue with the top answer is that LIBXML_HTML_NOIMPLIED is unstable.. It can reorder elements (particularly, moving the top element's closing tag to the bottom of the document), add random p tags, and perhaps a variety of other issues.It may remove the html and body tags for you, but at the cost of unstable behavior. In production, that's a red flag.
DA: 68 PA: 97 MOZ Rank: 98