In general when we need non-wikitext HTML displayed on-screen between two interface messages it is normal to uses existing composition features. Either message parameters, raw message parameters, or by splitting up the message.
It is not normal to solve it by registering single-use parser extension function to generate the HTML there.
Follows up from gerrit change 502041 CR. Remove these functions.