Пример #1
0
def ascii_to_image(text, **kwargs):
    return Emoji.ascii_to_image(text, **kwargs)
 def test_ascii_char(self):
     ascii = ">:/"
     image = '<img class="joypixels" alt="😕" src="https://cdn.jsdelivr.net/joypixels/assets/4.5/png/64/1f615.png"/>'
     self.assertEqual(Emoji.ascii_to_image(ascii), image)
Пример #3
0
def shortcode_to_unicode(value, *args, **kwargs):
    return mark_safe(Emoji.ascii_to_image(value, **kwargs))
Пример #4
0
def ascii_to_image(value, *args, **kwargs):
    return mark_safe(Emoji.ascii_to_image(value, **kwargs))
Пример #5
0
 def test_ascii_char(self):
     ascii = ">:/"
     image = '<img class="emojione" alt="😕" src="https://cdn.jsdelivr.net/emojione/assets/3.1/png/64/1f615.png"/>'
     self.assertEqual(Emoji.ascii_to_image(ascii), image)
Пример #6
0
def ascii_to_image(text, **kwargs):
    return Emoji.ascii_to_image(text, **kwargs)