ContentHandler should have importTransform( $text, $format ) and exportTransform( $text, $format ) methods to be called when importing/exporting pages. Per default, these functions would pass the text through unchanged.
The purpose of having these functions would be to give the ContentHandler a chance to validate or transform imported content according to local settings, and to normalize (possible old legacy) content serializations on export.
Version: unspecified
Severity: normal
Whiteboard: u=dev c=backend p=2 s=2014-05-20