When there's no toplevel element, an error is thrown.

Issue #1 resolved
Bob den Otter created an issue

When I remove <html> and <body>, i'd expect a list of <p> tags.

$options['allowed-tags'] = array('p', 'em', 'img', 'i', 'b', 'li', 'ol', 'ul', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6');

Instead I get this error:

Catchable fatal error: Argument 1 passed to DOMNode::appendChild() must be an 
instance of DOMNode, instance of DOMNodeList given, called in 
/raiddata/2kdata/dev/274_minvws/002_uitvoering_basis_ggz/conversie/htmlmaid/src/Ma
id/Maid.php on line 71 and defined in 
/raiddata/2kdata/dev/274_minvws/002_uitvoering_basis_ggz/conversie/htmlmaid/src/Ma
id/Maid.php on line 85

Comments (1)

  1. Log in to comment