Skip to content

Releases: gaqzi/django-emoji

Release 2.2 - The one with Django 1.10 support

06 Jul 10:13
Compare
Choose a tag to compare

Changelog

  • Added support for Django 1.10

Release 2.1 - The one with Django 1.9 support

30 Dec 02:06
Compare
Choose a tag to compare

Changelog

  • Added support for Django 1.9
  • Dropped support for Django 1.4

Release 2.0 - The one with autoescaped filters (XSS fix)

01 Nov 14:49
Compare
Choose a tag to compare

This release only adds autoescaping to the filters to alleviate them as an attack vector for XSS attacks.

Changelog

  • Enable autoescaping for filters. This functions the same way as
    built-in Django filters work, which are enabled by default. Because
    this has the potential to break current installations the major has
    been bumped albeit being a small fix.

Release 1.3 - The one about Python 3 support

07 Sep 05:06
Compare
Choose a tag to compare

This release only adds support for python 3.3 and 3.4, which are the supported versions for Django.

Changelog

  • Python 3 support
  • test suite is now being run through tox for for all supported
    versions of Django and Python. 1.4 to 1.7 with their respective
    versions of Python.

Release 1.2 - with even more unicode!

08 Apr 17:42
Compare
Choose a tag to compare

Highlights

  • Added a setting for changing the output of the <img> tag
  • Added a method to replace html encoded unicode characters with their unicode counterparts
  • Changed the default for replace_unicode so the alt attribute is the unicode character that was made into an image. This to allow for proper behavior when copy-pasting.

Thanks to @pistos2 for the work on replace_html_entities and setting the unicode character as the alt value.

Changelog

  • Emoji.replace_html_entities replaces all unicode html entities
    with their corresponding unicode character. This method is now by
    default called before Emoji.replace_unicode. (@pistos2)
  • Emoji.replace_unicode will now set the <img alt> attribute to be
    the unicode character being replaced. This change done to allow
    marking and copying strings with emojis and the unicode character
    being copied along correctly. (@pistos2)
  • Change the <img> tag to also have a title attribute that is the
    text representation of the current character being encoded.
  • Added settings for new options:
    • EMOJI_ALT_AS_UNICODE, default: True
    • EMOJI_REPLACE_HTML_ENTITIES, default: True
    • EMOJI_IMG_TAG, default:
      <img src="{0}" alt="{1}" title="{2}" class="emoji">
  • Added support for running on a narrow unicode build of Python.
    The test suite passed on narrow builds but it has not been production
    tested with a narrow build.

Release 1.1 — now with unicode!

31 Mar 15:23
Compare
Choose a tag to compare

Add in the ability to convert unicode emojis to images. The sample use case is input from a phone that for maximum compatibility needs to be displayed as an image.

New features for this:

  • Emoji.name_for(unicode_character) gives the name for a unicode character
  • Emoji.replace_unicode(unicode_string) replaces all unicode emojis with images in the passed in string.

Template filter:

  • emoji_replace_unicode usage: {{ tweet.message|emoji_replace_unicode }}