def _render_textual_content(self, data, replace_specialchars, replace_links, replace_smilies):
        if replace_specialchars:
            data = replace(data, self.replace_html)

        if replace_links:
            def linkrepl(match):
                url = match.group(0)
                href = url if '://' in url else 'http://' + url
                return '<a href="{0}">{1}</a>'.format(href, url)
            data = re.sub(url_re, linkrepl, data)

        if replace_smilies:
            data = replace(data, self.smilies.items())

        return data
Given an input text, update it by replacing the HTML special characters, the links with
dataset/ETHPy150Open ellmetha/django-precise-bbcode/precise_bbcode/bbcode/parser.py/BBCodeParser._render_textual_content