Hello,

I have a function that inserts some text into a textarea. The text is a placeholder for some data merging, and looks like %%FieldName%%. I have run into an issue where when i insert the text %%FaxNumber%%, it inserts it as '%x Number%%'.

I've done a few tests which rules out the function, but seems the issue is with the parameter to the function. If i pass '%Fa' it converts it to . Is there anyway i can stop this from happening??

To test this, in a blank html document add the line:
<a href="javascript:alert('%Fa');">test</a>

You will be prompted with ''. There is no doctype, im using quirks mode (to take advantage of 100% height).

Thanks in advance for any help.

Cheers,
James