WikiFunctions.Parse.Parsers.FixBrParagraphs C# (CSharp) Method

FixBrParagraphs() public method

Remove <br />'s where not needed
public FixBrParagraphs ( string articleText ) : string
articleText string
return string
        public string FixBrParagraphs(string articleText)
        {
            // Check for performance
            if (SyntaxRemoveBrQuick.IsMatch(articleText))
                articleText = SyntaxRemoveBr.Replace(articleText, "\r\n\r\n");

            articleText = SyntaxRemoveParagraphs.Replace(articleText, "\r\n\r\n");
            return SyntaxRegexListRowBrTagStart.Replace(articleText, "$1");
        }
Parsers