import re


def proc_line(line):
	"""
	proc_line() removes the HTML tags from a relevant line from the HTML text bound to a genus.
	Returns the list of row elements. 
	"""
	line = re.sub(r'<font color=#FF00BF>', '', line)
	line = re.sub(r'</font>', '', line)
# remove all color highlighting HTML tags
	line = re.sub('<.*?>', '|', line)
# replace all remaining HTML tags by a bar sign
	line = re.sub('\|\|\|', '|', line)
# replace triple bars by a single one
	line = re.sub('\|\|', '|', line)
# replace all double bars by a single one
	line = line[1:-1]
# remove first bar and last bar
# table row elements are now separated by a vertical bar
	lines = line.split('|')
# get list of row values within the current line
	return lines