I would like to convert Unicode text
Text with accent é
to
Text with accent é
'System.Web.HttpUtility.HtmlEncode' and 'System.Net.WebUtility.HtmlEncode' will produce
Text with accent é
Using an System.Xml.XmlWriter with ASCII encoding results in
Text with accent é
I need the name not any hex or decimal code.
I found many entity names here: https://unicode-table.com/en/html-entities/
Is there maybe some kind of library available?
Edit:
My target is to have an ASCII encoded file (XML) that uses entity NAMES instead of CODES.
If some codes no do have an entity NAME then they should be null (or the CODE).
This is a requirement for a project.