Pre-save transforms

Pre-save transforms (PST) are transformations which are applied to the  before it is even saved. They are implemented in the function  of the appropriate   subclass.

Wikitext
For, the ’s   applies the following transformations, in order:


 * Null characters
 * Null characters are removed.


 * Trailing whitespace
 * Whitespace (according to PHP's [//php.net/rtrim rtrim]) at the end of the text is removed.


 * Line endings
 * Line endings   as well as   are normalized to  .






 *   becomes   <tvar|1> </> becomes <tvar|2> </>
 * <tvar|1> </> becomes <tvar|2> </> <tvar|1> </> becomes <tvar|2> </>

JSON
<tvar|1> </> applies the following transformations, in order:


 * Beautify JSON
 * standardizes the formatting (“pretty”, i. e. split across lines and indented)


 * Line endings
 * Line endings <tvar|1> </> as well as <tvar|2> </> are normalized to <tvar|3> </>.