Closed acobster closed 6 years ago
tell SimpleXMLElement not to add a doctype or html/body tags when calling loadHTML()
https://stackoverflow.com/questions/4879946/how-to-savehtml-of-domdocument-without-html-wrapper/22490902
I encountered this when trying to unit-test Shortcode\Button so I went ahead and fixed it.
Shortcode\Button
tell SimpleXMLElement not to add a doctype or html/body tags when calling loadHTML()
https://stackoverflow.com/questions/4879946/how-to-savehtml-of-domdocument-without-html-wrapper/22490902