Given a table of html-encoded email addresses:
...| name&64;domain.com | some associated text |
| name&64;domain.com |
The following code prints only the "name" portion of the td content (for all listed cases). The "&64;domain.com" is dropped entirely.
$results->file_get_html($list_url);
$rows = $results->find("tr");
foreach ($rows as $row) {
$email = $row->find("td","0");
print $email;
print $email->innertext;
print $email->outertext;
print $email->plaintext;
}
The correct behavior would be to return the actual contents of the td.
Please update to the newest version of Simple_html_dom (version 1.5) many changes have been made to it to detect the output character set, and to properly generate plaintext.