'Is there a way to covert Unicode Hex Character Code a to a simple "a" so that I can get an alphabetic string?

This character format encoding description can be found in All such encoded characters and character description. The exact specific string I want to convert is-

-9<ahref="j&#x61vascript:&#x61lert(window.origin)">X

This should be converted to-

-9<ahref="javascript:alert(window.origin)">X

I am a beginner in C# and have very little knowledge of this encoding style. Please help. I want something like Encoding.{what-is-the-format}.GetString(encodedString) => returns decodedString.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source