

@register.filter
def smilize(text):
    for (fa_icon, smiley_re) in emoticon_res.items():
        text = smiley_re.sub((' <i class="fa %s"></i>' % fa_icon), smiley_re)
    return mark_safe(text)

dataset/ETHPy150Open amarandon/smeuhsocial/apps/microblogging/templatetags/microblogging_tags.py smilize/VarMisuse@42/70 `text`->`smiley_re`