Commit e3fa2b73 authored by Harish Ramachandran's avatar Harish Ramachandran Committed by Jan Provaznik

Better identify emoji tags for HTML links

parent 41a68852
......@@ -58,7 +58,7 @@ module MarkupHelper
next unless node.text? || node.name.match?('gl-emoji')
node.replace(link_to(node.text, url, html_options)) if node.text?
node.replace(link_to(node.to_html.html_safe, url, html_options)) if node.name.match?('gl-emoji')
node.replace(link_to(node.to_html.html_safe, url, html_options)) if node.name == 'gl-emoji'
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment