How to avoid System.Xml.Linq.XElement escaping HTML content? August 29, 2022 by Magenaut I’m using the XElement object to build some HTML in the code-behind on an ASP.NET page.