18
22
public static string GetHtml (string url, HelpSource helpSource, out Node match)
20
Console.WriteLine ("Calling URL {0} with HelpSource {1}", url, helpSource == null ? "(null)" : helpSource.Name);
22
24
string htmlContent = null;
28
htmlContent = Program.Root.RenderUrl (url, generator, out match, helpSource);
28
30
// the displayed url have a lower case type code (e.g. t: instead of T:) which confuse monodoc
29
31
if (url.Length > 2 && url[1] == ':')
30
32
url = char.ToUpperInvariant (url[0]) + url.Substring (1);
31
33
// It may also be url encoded so decode it
32
34
url = Uri.UnescapeDataString (url);
35
htmlContent = Program.Root.RenderUrl (url, generator, out match, helpSource);