HtmlExtensions.FixUrlWithoutProtocol Method

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

FixUrlWithoutProtocol(string, string)

Fixes urls without protocol, e.g. www.weavy.com => http://www.weavy.com

public static string FixUrlWithoutProtocol(this string url, string protocol = "http")

Parameters

url
string
protocol
string

Returns

string