src/Inlines/Text.cs
/// <summary>
/// Cleans the text of possible misinterpretations of Markdown.
/// </summary>
/// <param name="text">Text</param>
/// <param name="formatting">Formatting information</param>
/// <returns>Cleaned text</returns>
Cleans the text of possible misinterpretations of Markdown.
Cleans the text of possible misinterpretations of Markdown .
protected static string EscapeReservedCharacters(string text, MarkdownFormatting formatting)
        {
            if (!string.IsNullOrEmpty(text))
            {
                text = EscapeUrls(text);
                text = EscapeEmphasis(text, '_', formatting?.EscapeAllIntrawordEmphasis == true);
                text = EscapeEmphasis(text, '*', formatting?.EscapeAllIntrawordEmphasis == true);
            }
            return text;
        }
protected static string EscapeReservedCharacters ( string text , MarkdownFormatting formatting ) { if ( ! string . IsNullOrEmpty ( text ) ) { text = EscapeUrls ( text ) ; text = EscapeEmphasis ( text , ' ' , formatting ? . EscapeAllIntrawordEmphasis == true ) ; text = EscapeEmphasis ( text , ' ' , formatting ? . EscapeAllIntrawordEmphasis == true ) ; } return text ; }
Cleans the text of possible misinterpretations of Markdown.
Cleans the text of possible misinterpretations of Markdown .
None
text
string
None
formatting
MarkdownFormatting
None