diff --git a/pandas/io/html.py b/pandas/io/html.py
index efcbb3c588ce9..3692b07acb85c 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)