EntityHelper Class
Helper class to decode an entity.
public static class EntityHelperMethods
| Name | Description |
|---|---|
| DecodeEntity(int) | Decodes the given UTF-32 character code to the matching set of UTF-16 characters. |
| DecodeEntity(ReadOnlySpan<char>) | Decodes the given HTML entity to the matching Unicode characters. |
DecodeEntity overloads
DecodeEntity(int)
EntityHelper.csDecodeEntity(ReadOnlySpan<char>)
EntityHelper.csDecodes the given HTML entity to the matching Unicode characters.
public static string? DecodeEntity(ReadOnlySpan<char> entity)Parameters
entityReadOnlySpan<char>- The entity without
∧symbols, for example,copy.
Returns
string? The unicode character set or null if the entity was not recognized.