diff --git a/pandas/io/html.py b/pandas/io/html.py
index 05d7c2998ef27..cebedd18664e4 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -577,7 +577,7 @@ def _parse_tables(self, doc, match, attrs):
for elem in table.find_all(style=re.compile(r"display:\s*none")):
elem.decompose()
- if table not in unique_tables and table.find(text=match) is not None:
+ if table not in unique_tables and table.find(string=match) is not None:
result.append(table)
unique_tables.add(table)