projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a8d73c
)
Reflect move of u_unpack from Chars to Unicode
author
Tom Hughes
<tom@compton.nu>
Fri, 3 Sep 2010 23:23:55 +0000
(
00:23
+0100)
committer
Tom Hughes
<tom@compton.nu>
Mon, 14 Nov 2011 09:42:43 +0000
(09:42 +0000)
app/helpers/application_helper.rb
patch
|
blob
|
history
diff --git
a/app/helpers/application_helper.rb
b/app/helpers/application_helper.rb
index e285215b8d85a01c81bc7eabb93d58ba233ff774..34f9a893cdbec9e7aacd574a83353f176219f488 100644
(file)
--- a/
app/helpers/application_helper.rb
+++ b/
app/helpers/application_helper.rb
@@
-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