app/helpers/application_helper.rb
# encodes a string in hex to obfuscate it to robots
encodes a string in hex to obfuscate it to robots
encodes a string in hex to obfuscate it to robots
def hexencode(s)
  	string = ''
		for i in 0...s.length
			if s[i,1] =~ /\w/
				string << sprintf("&#%d;",s[i])
			else
				string << s[i,1]
			end
		end
		string
	end
def hexencode ( s ) string = '' for i in 0 ... s . length if s [ i , 1 ] =~ / \w / string << sprintf ( "&#%d;" , s [ i ] ) else string << s [ i , 1 ] end end string end
encodes a string in hex to obfuscate it to robots
encodes a string in hex to obfuscate it to robots
s
<not_specific>