protected void ProcessBaseTag(HtmlTagContext tagContext, HtmlWriter htmlWriter) { using (IEnumerator <string> enumerator = (from filterAttribute in tagContext.Attributes where filterAttribute.Id == HtmlAttributeId.Href select filterAttribute.Value).GetEnumerator()) { if (enumerator.MoveNext()) { string uriString = enumerator.Current; this.BaseRef = HtmlBodyCallback.TryParseUri(uriString, UriKind.Absolute); } } }
internal static bool IsSafeUrl(string urlString, HtmlAttributeId htmlAttr) { HtmlBodyCallback.TypeOfUrl typeOfUrl = HtmlBodyCallback.GetTypeOfUrl(urlString, htmlAttr); return(typeOfUrl != HtmlBodyCallback.TypeOfUrl.Unknown); }