Fix emoji tags

This commit is contained in:
Helena Rasche
2019-02-06 16:40:40 +01:00
parent c4fbe94bcf
commit b59d76eb4a
+1 -1
View File
@@ -1058,7 +1058,7 @@ def smart_str(s, encoding=DEFAULT_ENCODING, strings_only=False, errors='strict')
def strip_control_characters(s):
"""Strip unicode control characters from a string."""
return "".join(c for c in unicodify(s) if unicodedata.category(c)[0] != "C")
return "".join(c for c in unicodify(s) if unicodedata.category(c)[0] != "C" or unicodedata.category(c) == "Cn")
def strip_control_characters_nested(item):