We are trying to alter some HTML when content is saved or published in EpiServer 8.0. In the Global.asax we registered an OnPublishedContent event and an OnSavingContent event. But upon inspecting the ContentEventArgs, I'm unable to locate the actual content markup that we want to adjust.
We have this in Application_Start()
DataFactory.Instance.PublishedContent += OnPublishedContent; DataFactory.Instance.SavingContent += OnSavingContent;
And this is one of the signatures:
private void OnPublishedContent(object sender, ContentEventArgs contentEventArgs)
The "Content" property of ContentEventArgs shows ID, Name, and Page Type. But it doesn't show the markup. How do I get to that markup so we can adjust it before it gets saved? Thanks.