Re: Encoding Ampersands in Query String

Splash Forums PrettyFaces Users Encoding Ampersands in Query String Re: Encoding Ampersands in Query String

#20894

mge
Participant

No luck – the raw ampersands were still in the output HTML. I was able to get a simple re-write rule working though. Unfortunately this doesn’t take into account any other XML/HTML entities embedded in the URL, but it’s sufficient for now.

<rewrite inbound="false" match="& #38;(?!amp;)" substitute="& #38;amp;"/>

Note – I had to add spaces after the ‘&’.

Thanks for looking in to this.