More about ampersands

More about ampersands

There is quite a few old posts about using ampersands, but I fear there is still an issue with these.

I have a 'Property_Name' field in my 'Properties' form which allows users to use the '&' sign in the text. However, when they do, the following does not work :

    message = "#View:Assets_Report?Property=" + property_details.Property_Name;
    openUrl(message, "Popup window", "height=800, width=600");

In all other instances, it works fine.

If there is a technical restriction to the use of ampersands, is there a quick way to validate data input to ensure users don't enter one?