Now this is something weird: I have a page with URLs with parameters, e.g.:
I put this URL directly in the source code through HTML editing mode in FCKeditor, and encoded the ampersand with the appropriate entity (
&). Also this URL is enclosed as string in a JavaScript function that is called on click to open a popup window:
Code: Select all
<a onclick="dl('dl_st.php?vid=1&var=1176983883.96'); return false;" href="dl_st.php?vid=1&var=1176983883.96">
Now what happens is whenever somebody opens that page to edit something on it the ampersand in the entity is stripped out/replaced with a single quote (
'amp;) which is ending the JavaScript string, and thus rendering the function invalid as the rest of the URL isn’t recognized as part of this string anymore. How can I avoid that?
It’s not doing that with regular URLs in the href (not in a JS function), and putting {literal} tags doesn’t work either.
