HTML post processing

Topics: Customizing Orchard, Troubleshooting
Feb 23, 2013 at 9:20 AM
I'm in need of doing some extra cleanup on final HTML like removing comments, changing links to point to CDN/static domain etc. I read in 2 years old thread that I can use IHtmlFilter. But I can't get it to do anything, I even tried to take example from Markdown module which I think does this sort of thing. But I can't even get that one to work. Can it be broken in 1.60? Maybe Im doing it totally wrong, any pointers/examples appreciated.
Feb 23, 2013 at 7:21 PM
IHtmlFilter is only run for the Body part's content. If you want to run MVC filters like result or action filter, have your class implement IResultFilter (or IActionFilter) and derive it from FilterProvider.