def _handle_hidden_tables(self, tbl_list, attr_name):
if not self.displayed_only:<EOL><INDENT>return tbl_list<EOL><DEDENT>return [x for x in tbl_list if "<STR_LIT>" not in<EOL>getattr(x, attr_name).get('<STR_LIT>', '<STR_LIT>').replace("<STR_LIT:U+0020>", "<STR_LIT>")]<EOL>
Return list of tables, potentially removing hidden elements

Parameters
----------
tbl_list : list of node-like
    Type of list elements will vary depending upon parser used
attr_name : str
    Name of the accessor for retrieving HTML attributes

Returns
-------
list of node-like
    Return type matches `tbl_list`