From 0c177aaddf21d9c0e5750cabf89c64c903b7dce0 Mon Sep 17 00:00:00 2001 From: Senya Date: Tue, 19 Apr 2016 08:28:47 +0300 Subject: [PATCH] the special case is not required anymore fix #5678 --- lib/diaspora/message_renderer.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/diaspora/message_renderer.rb b/lib/diaspora/message_renderer.rb index 85d04414208..7edfc711d94 100644 --- a/lib/diaspora/message_renderer.rb +++ b/lib/diaspora/message_renderer.rb @@ -43,12 +43,6 @@ def append_and_truncate def escape if options[:escape] @message = ERB::Util.html_escape_once message - - # Special case Hex entities since escape_once - # doesn't catch them. - # TODO: Watch for https://github.com/rails/rails/pull/9102 - # on whether this can be removed - @message = message.gsub(/&(#[xX][\dA-Fa-f]{1,4});/, '&\1;') end end