We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e10bd8 commit 928bd03Copy full SHA for 928bd03
1 file changed
src/HTMLTable2JSON.php
@@ -72,7 +72,9 @@ public function tableToJSON($url, $firstColIsRowName = TRUE, $tableID = '', $ign
72
else $html = $testing;
73
74
// Pull table out of HTML
75
- $table_str = '<table id="'.$tableID;
+ if (strcmp('', $tableID))
76
+ $table_str = '<table';
77
+ else $table_str = '<table id="'.$tableID;
78
$start_pos = stripos($html, $table_str);
79
$end_pos = stripos($html, '</table>', $start_pos) + strlen('</table>');
80
$length = $end_pos - $start_pos;
0 commit comments