def METHOD_NAME(self, row, border):
    """ split a row of text into list of cells. """
    if border:
        if row.startswith('|'):
            row = row[1:]
        if row.endswith('|'):
            row = row[:-1]
    return self._split(row, '|')