Menu
Hi,
The HTML5 validator doesn’t like ‘&’ in the urls it wants ‘&’
so I am trying to change them before they get output from the server.
I can not stop users from pasting if urls with ‘&’ in them so I just want to swap them out.
Because I only want to change ‘&’ that are in urls – not anywhere else
I need to match a pattern.
So I have my preg_replace like this:
$text= preg_replace(“/[href(.+?)][&
Dunno why – just doesn’t look right 😮
Hopefully I will get the hang of this one day !! ?
Thanks.