mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-24 08:28:50 -05:00
added back html_email obfusticator
This commit is contained in:
parent
8653d3e936
commit
bd96f301ef
@ -113,6 +113,15 @@ module Helpers
|
||||
|
||||
# My added helpers
|
||||
|
||||
def to_html_email(address)
|
||||
email = string_to_html(address)
|
||||
"<a href=\"#{string_to_html('mailto:')}#{email}\">#{email}</a>"
|
||||
end
|
||||
|
||||
def string_to_html(s)
|
||||
s.strip.unpack("C*").map{|ch| "&#" + ch.to_s + ";" }.to_s
|
||||
end
|
||||
|
||||
def show_part (file)
|
||||
data = ''
|
||||
f = File.open(Dir.pwd+"/source/"+file)
|
||||
|
Loading…
Reference in New Issue
Block a user