Permalink
Browse files

actually, now removing language attributes as it's deprecated

  • Loading branch information...
1 parent 1123187 commit 747b4a2fbfa1379aab7dcbff9705176f310fe574 @rmm5t committed Mar 16, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 obfuscated_email_helper.rb
@@ -12,7 +12,7 @@
# obfuscated_mail_to "no.spam@example.com", nil, :class => "email"
#
# Outputs:
-# <script language="javascript" type="text/javascript">
+# <script type="text/javascript">
# document.write(String.fromCharCode(204-144,241-144,176-144, ... ,206-144));
# </script>
module ObfuscatedEmailHelper
@@ -25,7 +25,7 @@ def obfuscated_link(title, href = "", options = {})
chars, random = [], rand(255)
plain = link(title, href, options)
plain.each_byte { |c| chars << "#{c + random}-#{random}" }
- tag(:script, :language => "javascript", :type => "text/javascript") do
+ tag(:script, :type => "text/javascript") do
"document.write(String.fromCharCode(#{chars.join(',')}));"
end
end

0 comments on commit 747b4a2

Please sign in to comment.