예제 #1
0
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
예제 #2
0
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
예제 #3
0
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
예제 #4
0
def bbcode(s):
    if not s:
        return ""
    return _postmarkup(s, #cosmetic_replace=False, 
            auto_urls=getattr(settings, 'BBCODE_AUTO_URLS', True))
예제 #5
0
def bbcode(s):
    if not s:
        return ""
    return _postmarkup(s, #cosmetic_replace=False, 
            auto_urls=getattr(settings, 'BBCODE_AUTO_URLS', True))