for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sioen\HtmlToJson;
use Sioen\SirTrevorBlock;
final class BaseConverter implements Converter
{
use HtmlToMarkdown;
public function toJson(\DOMElement $node)
$html = $node->ownerDocument->saveXML($node);
return new SirTrevorBlock(
'text',
array('text' => ' ' . $this->htmlToMarkdown($html))
);
}
public function matches(\DomElement $node)
return true;