Reflect move of u_unpack from Chars to Unicode
This commit is contained in:
parent
1a8d73c024
commit
819badd55b
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def html_escape_unicode(text)
|
||||
chars = ActiveSupport::Multibyte::Chars.u_unpack(text).map do |c|
|
||||
chars = ActiveSupport::Multibyte::Unicode.u_unpack(text).map do |c|
|
||||
c < 127 ? c.chr : "&##{c.to_s};"
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue