Skip to content

Commit

Permalink
Email rich type - mark result of #to_html as html safe
Browse files Browse the repository at this point in the history
  • Loading branch information
tslocke committed Nov 11, 2011
1 parent fdab4af commit f51d5d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hobo_fields/lib/hobo_fields/types/email_address.rb
Expand Up @@ -15,7 +15,7 @@ def valid?
end

def to_html(xmldoctype = true)
ERB::Util.html_escape(self).sub('@', " at ").gsub('.', ' dot ')
ERB::Util.html_escape(self).sub('@', " at ").gsub('.', ' dot ').html_safe
end

HoboFields.register_type(:email_address, self)
Expand Down

0 comments on commit f51d5d2

Please sign in to comment.