From: https://gerrit.wikimedia.org/r/#/c/117211/2/lib/ext.core.Sanitizer.js
"We won't ever do anything fancy with the token-based template expansion. The only remaining use case is parserTests. At some point we should probably remove it and replace it with a mock string-based preprocessor."
This will simplify the codebase.
We can use the mockAPI to return the expected preprocessor response for the various expansions.
Version: unspecified
Severity: normal