Pre-save transforms/nan

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

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


 * Khang jī-hû
 * San-tû khang jī-hû


 * Bué-suî khang-kè
 * Whitespace (according to PHP's [//php.net/rtrim rtrim]) at the end of the text is removed.


 * hâng-bué
 * Line endings  as well as   are normalized to.




 * − Note that this order has the nontrivial effect of not allowing template substitutions within a signature.
 * − Note that this order has the nontrivial effect of not allowing template substitutions within a signature.


 * piàn-tsó  piàn-tsó
 * piàn-tsó  piàn-tsó

JSON
applies the following transformations, in order:


 * Bí-huà JSON
 * standardizes the formatting (“pretty”, i. e. split across lines and indented)


 * hâng-bué
 * Line endings  as well as   are normalized to.