Esempio n. 1
0
def unslackify(value):
    """Takes a string and turns slack style :emoji: into unicode"""

    value = slack_to_human_readable(value)

    # replace all colon style :emoji: with unicode
    value = emoji_data_python.replace_colons(value)

    return value
Esempio n. 2
0
 def get_details_ui(self, instance):
     details_ui = slack_to_human_readable(instance.details)
     details_ui = emoji_data_python.replace_colons(details_ui)
     return details_ui
Esempio n. 3
0
 def get_text_ui(self, instance):
     text_ui = slack_to_human_readable(instance.text)
     text_ui = emoji_data_python.replace_colons(text_ui)
     return text_ui