mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Better emoji escaping for topic title
This commit also puts emojiVersion in its own erb file.
This commit is contained in:
committed by
Joffrey JAFFEUX
parent
135191d1d1
commit
35426b5ad6
@@ -157,13 +157,7 @@ class Emoji
|
||||
end
|
||||
|
||||
def self.unicode_unescape(string)
|
||||
string.each_char.map do |c|
|
||||
if str = unicode_replacements[c]
|
||||
":#{str}:"
|
||||
else
|
||||
c
|
||||
end
|
||||
end.join
|
||||
PrettyText.escape_emoji(string)
|
||||
end
|
||||
|
||||
def self.gsub_emoji_to_unicode(str)
|
||||
|
||||
Reference in New Issue
Block a user