def mark_item_active(data, itemname):
    'Finds itemname in data, then marks that node as active. Return value is changed data'
    pos = data.find(f'" href="{itemname}"')
    if (pos < 0):
        logfunc(f'Error, could not find {itemname} in {data}')
        return data
    else:
        ret = ((data[0:pos] + ' active') + data[pos:])
        return ret
Finds itemname in data, then marks that node as active. Return value is changed data
def mark_item_active(data, itemname):
    
    pos = data.find(f'" href="{itemname}"')
    if (pos < 0):
        logfunc(f'Error, could not find {itemname} in {data}')
        return data
    else:
        ret = ((data[0:pos] + ' active') + data[pos:])
        return ret