HtmlExtensions.ShortenUrl Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

ShortenUrl(string, int)

Shortens a url for display.

public static string ShortenUrl(this string url, int max)

Parameters

url
string

The URL to shorten.

max
int

Maximum size for the url. Anything longer gets shortened.

Returns

string

The shortened url.