Method: Addressable::URI#display_uri
- Defined in:
- lib/addressable/uri.rb
#display_uri ⇒ Addressable::URI
Creates a URI suitable for display to users. If semantic attacks are likely, the application should try to detect these and warn the user. See <a href=“www.ietf.org/rfc/rfc3986.txt”>RFC 3986</a>, section 7.6 for more information.
2201 2202 2203 2204 2205 |
# File 'lib/addressable/uri.rb', line 2201 def display_uri display_uri = self.normalize display_uri.host = ::Addressable::IDNA.to_unicode(display_uri.host) return display_uri end |