Thread:Project:Support desk/Process text in a wiki article

How to access a wiki article before it gets saved and do some processing and save the processed wiki article instead of the originally typed article ?