I have a reference list containing function names in this format:
list_1_ref = ['Name1<abc>' , 'Name2<abc>']
From another function I get a return list containing elements with html format:
list_2 = ['Name1<abc>' , 'Name2<abc>']
My code should now compare if an element from list_2 is contained in the first list:
for element in list2:
if element in list_1_ref:
# ...do something...
Unfortunately this does not work, I guess because of the html characters < and >.
What is an efficient method so solve this? I thought of a replacement, but my Python skills are limited and I am not sure how to do this and if it is the most efficient way.
Thank you!