parent
b0e608aa38
commit
0c177aaddf
1 changed files with 0 additions and 6 deletions
|
|
@ -43,12 +43,6 @@ module Diaspora
|
||||||
def escape
|
def escape
|
||||||
if options[:escape]
|
if options[:escape]
|
||||||
@message = ERB::Util.html_escape_once message
|
@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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue