Splash › Forums › PrettyFaces Users › Encoding Ampersands in Query String › Re: Encoding Ampersands in Query String
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.
If you find our tools useful, please consider making a donation to help us stay online and building software!