BlogML.BlogMLWriterBase.SgmlUtil.StripRootUrlPath C# (CSharp) Method

StripRootUrlPath() public static method

public static StripRootUrlPath ( string rootUrl, string url ) : string
rootUrl string
url string
return string
            public static string StripRootUrlPath(string rootUrl, string url)
            {
                if (url.StartsWith(rootUrl))
                {
                    url = url.Remove(0, rootUrl.Length);
                }

                if (url.StartsWith("/"))
                {
                    url.TrimStart(new[] { '/' });
                }

                return url;
            }