WikiFunctions.Tools.RemoveHashFromPageTitle C# (CSharp) Method

RemoveHashFromPageTitle() public static method

Removes the # and text after from a page title. Some redirects redirect to sections, the API doesnt like this
public static RemoveHashFromPageTitle ( string title ) : string
title string Page Title
return string
        public static string RemoveHashFromPageTitle(string title)
        {
            return !title.Contains("#") ? title : (title.Substring(0, title.IndexOf('#')));
        }
Tools