Me neither 😆 . I asked for and received that code via the Russian Telegram chat. Not sure if it is a modifier than has been removed in Evo 3?
Thanks for having a look @BarnsleyBloke.
BarnsleyBloke I did paste your code into my v3 site and it looked fine in the editor in the document. The display you are seeing is encoded html. So I made sure I changed from TinyMCE to none on the editor box before pasting the A html code in my page.
Changing back to TinyMCE and all I see is {{phone}}. Looking at the source code I see
<a href="tel:{{phone:preg_replace(/[0-9+]/,)}}">{{phone}}</a>
Checking the frontend page and everything looks ok.
When you say eveything looks ok, you mean you see something like this with a stripped out phone number or do you still see preg_replace in the front end html?
<a href="tel:0123456789">01 2345 6789</a>
Even if I change the contact page to not rich text and paste the preg_replace call straight into the Contact page, it shows the same in the front end, like so with preg_replace and the code %7B etc
<a href="tel:%7B%7Bphone:preg_replace(/%5B%5E0-9+%5D/,)%7D%7D">01 2345 6789</a>
What's the contents of the chunk?
It's actually 2 chunks, one for the site owner to easily edit the number, one that contains the preg_replace call in the href link.
The {{phone}}
chunk contents in my test site is simply a dummy landline number:
01 2345 6789
The {{phoneLink}}
chunk contents is below:
<a href="tel:{{phone:preg_replace(/[^0-9+]/,)}}">{{phone}}</a>
The frontend html in Evo 3 looks like so:
<a href="tel:%7B%7Bphone:preg_replace(/%5B%5E0-9+%5D/,)%7D%7D">01 2345 6789</a>
The front end html is meant to look like so with no spaces in the href link (as it does in 1.4.15):
<a href="tel:0123456789">01 2345 6789</a>
Does that help clarify?
Basically it looks like the preg_replace modifier doesn't work in Evo 3.1.17.
Evo 3, you're killing me 🙂