@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, text)
    return mark_safe(text)
dataset/ETHPy150Open amarandon/smeuhsocial/apps/microblogging/templatetags/microblogging_tags.py/smilize/original