I will try that and report back. Thank you very much, sir.
A user posts a topic. That topic now has a couple of replies. We have implemented a standard of referencing other replies without quoting by simply using a hashtag and a number. Like ‘#5’ would be a reply to reply number 5 in the topic.
We currently have a plugin (that I did not write but have access to) that upon ‘commit’ or save will analyse the content of the reply and convert all #[NUMBER] strings into anchor references to other replies before content is saved to db.
This is just not very practical because when that same reply is edited the #[NUMBER] has now been wrapped in a tag to make it a link making editing the # part very annoying if that’s what users want to do.
Instead we would like to make the analyses and the conversion of the reply when the readout from db happens. Or at least before any text/replies are shown. That means the code has to run on every reply every time it needs to be shown, but the content save is as the user saved it.
Does that make any sense?