Don't encode phrase parameters?

Liam W

in memoriam 1998-2020
I have a url being passed as a named parameter to a phrase, but it has get params, but the & symbol is being encoded to a html entity.

Can I stop this?
 
In a template, pass the URL as {xen:raw} and in PHP pass false as the third parameter to new XenForo_Phrase().

Though I have to say... this is not something I've had to worry about before.

Are you saying you're just passing a URL string such as: "index.php?param1=1&param2=2" and it's changing & into &?

I have tested this and I do not need to use any of the methods I mentioned to get this to work.
 
Last edited:
I'm building the link using the XenForo link class, with extra params.

I'm then passing this built link into a phrase as a named parameter. The ampersand in the url then appears in the phrase as &.

Liam
 
Top Bottom