See attached file (test.php) for working example.
Simple_html_dom can't find closing tag and stops only after .
To fix this maybe you should add
'param'=>1
to
protected $self_closing_tags = array(...) (line 780)
Or another way - add
'object'=>1
to
protected $block_tags = array( ...) (line 781)
I don't know which way is correct, but they both work.
Thank you.
Fix this by adding 'param'=> 1.
protected $self_closing_tags = array('img'=>1, 'br'=>1, 'input'=>1, 'meta'=>1, 'link'=>1, 'hr'=>1, 'base'=>1, 'embed'=>1, 'spacer'=>1, 'param'=>1);
Thanks for the report, this was recently fixed in master by adding 'param'=>1 to $self_closing_tags:
https://sourceforge.net/p/simplehtmldom/repository/ci/48e8278f5bf593aa4cb2d3fc69bafa443986860c/tree/simple_html_dom.php?diff=0d9e1001afdfb5ea0058d168d64e8421aa19d131