public function html($html = NULL)
{
return $this->content($html, function ($node) {
$result = '';
foreach ($node->childNodes as $node) {
$result .= $this->getDocument()->saveHTML($node);
}
return $result;
}, function ($html) {
return $this->build()->getFragment($html, 'text/html');
}, function ($node, $fragment) {
$this->modify($node)->replaceChildren($fragment);
});
}