Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simple_html_dom_node::text() method is abnormal with embed tag #43

Open
taobig opened this issue Jun 3, 2017 · 0 comments
Open

simple_html_dom_node::text() method is abnormal with embed tag #43

taobig opened this issue Jun 3, 2017 · 0 comments

Comments

@taobig
Copy link

taobig commented Jun 3, 2017

Example code

$content = "<div class=test><embed src='http://....swf' quality='high' width='480' height='400' align='middle' allowScriptAccess='always' allowFullScreen='true' mode='transparent' type='application/x-shockwave-flash'></embed></div>";
$dom = HtmlDomParser::str_get_html($content);
$newsContent = $dom->find(".test", 0)->text();
var_dump(newsContent);

Expected result:
string(0) ""
Result:
string(8) "</embed>"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant