- changed status to resolved
When there's no toplevel element, an error is thrown.
Issue #1
resolved
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)
-
repo owner - Log in to comment
Rewrote most of the cleaning code.
Fixes
#1Fixes#2→ <<cset 1f654fe0d4ff>>