This is a convenience function for formatting a URL in a concise and human-
friendly way to help users make security-related decisions (or in other
circumstances when people need to distinguish sites, origins, or otherwise-
simplified URLs from each other). Internationalized domain names (IDN) may
be presented in Unicode if the conversion is considered safe. The returned
value will (a) omit the path for standard schemes, excepting file and
filesystem, and (b) omit the port if it is the default for the scheme. Do
not use this for URLs which will be parsed or sent to other applications.
This is a convenience function for formatting a URL in a concise and human- friendly way to help users make security-related decisions (or in other circumstances when people need to distinguish sites, origins, or otherwise- simplified URLs from each other). Internationalized domain names (IDN) may be presented in Unicode if the conversion is considered safe. The returned value will (a) omit the path for standard schemes, excepting file and filesystem, and (b) omit the port if it is the default for the scheme. Do not use this for URLs which will be parsed or sent to other applications.