代码 复制 - 运行

def filterEmojiContent(self, content):
        ###filter Emoji character
        re_pattern = re.compile(u'[^\u0000-\uD7FF\uE000-\uFFFF]', re.UNICODE)
        content = filtered_string = re_pattern.sub(u'', content)
        return content