'Main access function, converts a text containing ANSI codes
into html statements.
Args:
text (str): Text to process.
strip_ansi (bool, optional):
Returns:
text (str): Parsed text.'

def parse(self, text, strip_ansi=False):

    text = parse_ansi(text, strip_ansi=strip_ansi, xterm256=True, mxp=True)
    result = re.sub(self.re_string, self.sub_text, text)
    result = re.sub(self.re_mxplink, self.sub_mxp_links, result)
    result = self.re_color(result)
    result = self.re_bold(result)
    result = self.re_underline(result)
    result = self.re_blinking(result)
    result = self.re_inversing(result)
    result = self.remove_bells(result)
    result = self.convert_linebreaks(result)
    result = self.remove_backspaces(result)
    result = self.convert_urls(result)
    return result
