How do I save a page as XHTML?
Versions:
4.70,
FAQ number:
98,
Old FAQ number: 942
Q: How do I save a page as XHTML?
A: By default EPiServer saves pages exactly the way they are posted by the browser. This is by design. However, if you want the page to be saved as XHTML for instance, you can do so. Capture the PageSaving event and convert the HTML to XHTML using EPiServer's built-in HTML parser. See sample below.
Add the following to Global.asax.cs: