public HideMore ( string articleText, bool hideOnlyTargetOfWikilink ) : string | ||
articleText | string | the text of the article |
hideOnlyTargetOfWikilink | bool | whether to hide only the target of a wikilink (so that fixes such as typo corrections may be applied to the piped part of the link) |
return | string |
public string HideMore(string articleText, bool hideOnlyTargetOfWikilink)
{
return HideMore(articleText, hideOnlyTargetOfWikilink, true, true);
}
private string HideMore(string text, bool hideExternalLinks, bool leaveMetaHeadings, bool hideImages) { Hider = new HideText(hideExternalLinks, leaveMetaHeadings, hideImages); string s = Hider.HideMore(text); Assert.AreEqual(text, Hider.AddBackMore(s)); return s; }