[android-components](../../index.md) / [mozilla.components.support.utils](../index.md) / [URLStringUtils](index.md) / [toDisplayUrl](./to-display-url.md)

# toDisplayUrl

`fun toDisplayUrl(originalUrl: `[`CharSequence`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)`): `[`CharSequence`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/utils/src/main/java/mozilla/components/support/utils/URLStringUtils.kt#L113)

Generates a shorter version of the provided URL for display purposes by stripping it of
https/http and/or WWW prefixes when applicable.

