Restricts a dynamic table name to safe characters.
Only keeps alphanumeric and underscores.
$table: The table name to escape.
The escaped table name as a string.
function db_escape_table($table) {
return Database::getConnection()
->escapeTable($table);
}