src/Markdig/Helpers/EntityHelper.cs
/// <summary>
/// Decodes the given HTML entity to the matching Unicode characters.
/// </summary>
/// <param name="entity">The entity without <c>&amp;</c> and <c>;</c> symbols, for example, <c>copy</c>.</param>
/// <returns>The unicode character set or <c>null</c> if the entity was not recognized.</returns>
Decodes the given HTML entity to the matching Unicode characters.
Decodes the given HTML entity to the matching Unicode characters .
public static string? DecodeEntity(ReadOnlySpan<char> entity)
        {
            if (EntityMap.TryMatchExact(entity, out KeyValuePair<string, string> result))
                return result.Value;
            return null;
        }
public static string ? DecodeEntity ( ReadOnlySpan < char > entity ) { if ( EntityMap . TryMatchExact ( entity , out KeyValuePair < string , string > result ) ) return result . Value ; return null ; }
Decodes the given HTML entity to the matching Unicode characters.
Decodes the given HTML entity to the matching Unicode characters .
The unicode character set or null
The unicode character set or null
entity
ReadOnlySpan<char>
The entity without &;copy
The entity without & ; copy