I'm looking for someone to provide insight on the architecture of
Parser.php, particularly with regard to strip() and related functions.
(This is for Parser.php version 1.262 from CVS HEAD.)
Questions I have are:
1. Should unstrip() and unstripNoWiki() always be called after strip()
has been called? If so, why does stripParse() seem to break this
rule?
2. What is the purpose of insertStripItem()? It is called from only
one place (stripParse()) but looks like it might have been intended
for more general purposes. What is its status? How does it relate to
the strip() function -- should strip() be calling insertStripItem()?
3. Should an unstripCompletely() function be defined simply to call
unstrip() and then unstripNoWiki() since most of the time the two are
called consecutively? This would IMO help people avoid bugs due to
forgetting one of the unstrip calls when both are required.
Thanks,
Alan Wessman
Show replies by date