def bbcode(context, s, has_replied=False): if not s: return "" tag_data = {'has_replied': has_replied} html = _postmarkup(s, cosmetic_replace=False, tag_data=tag_data, auto_urls=getattr(settings, 'BBCODE_AUTO_URLS', True)) context['hide_attachs'] = tag_data.get('hide_attachs', []) return html
def bbcode(context, s, has_replied=False): if not s: return "" tag_data = {"has_replied": has_replied} html = _postmarkup( s, tag_data=tag_data, auto_urls=getattr(settings, "BBCODE_AUTO_URLS", True) # cosmetic_replace=False, ) context["hide_attachs"] = tag_data.get("hide_attachs", []) return html
def bbcode(s): if not s: return "" return _postmarkup(s, #cosmetic_replace=False, auto_urls=getattr(settings, 'BBCODE_AUTO_URLS', True))