I want to convert a string with an email address into ASCII characters for placing in a HTML document. What's the easiest way to do this?
I keep getting an array back in my HTML document with the characters using this code in my model:
def ascii_email
self.email.each_byte do |e|
"&#", e, ";"
end
end