Depending on whether the text will contain '>' or '<' I would either just make a function to remove anything between those, or use a parsing lib
def cleanStrings(self, inStr):
a = inStr.find('<')
b = inStr.find('>')
if a < 0 and b < 0:
return inStr
return cleanString(inStr[a:b-a])