Essentially, I’m grabbing source code which contains entities such as & and > which I would like to replace with & and >, respectively. A simple string replace would be completely exhaustive because there are hundreds of possible entities that could show up in the source code. Is there a built-in or standard way to do it so I don’t have to type up a hundred lines of string replacements?
Thanks! 🙂
Perhaps the WebUtility.HtmlDecode Method is what you’re looking for
The article gives an example using Powershell to call it