Replace certain words in variable html output?

Hello,
I am using version 2.5.12.

I was wondering if anyone knows of a way i can ( maybe via a plugin? ) have a list of words that get replaced before it is rendered on a page.

On my templates i have…

$page->title()->html()

I would like an occurrences of the word “Global” replaced with “Honey”
And i will have a list of many words to get replaced.

I was able to do it for the

$page->text()->kirbytext()

using

kirbytext::$pre[]

But that does not work on the ->html output

Or maybe something like a placeholder… such as the variable would have “This page is for [country]”
And then i can have all the country placeholders replaced by the country name.
For the ->html output tho.

I’d create a custom field method that you can call on the relevant fields: Custom field methods | Kirby