DecodeEntity(ReadOnlySpan) Method

Definition

Namespace Markdig.Helpers
Assembly Markdig.dll

Decodes the given HTML entity to the matching Unicode characters.

public static string? DecodeEntity(ReadOnlySpan<char> entity)

Parameters

entity
ReadOnlySpan<Char>

The entity without & and ; symbols, for example, copy.

Returns

String
The unicode character set or null if the entity was not recognized.