String parameters in a javascript function
<p>Im having a function:</p>

<pre><code>&lt;script&gt;
function params(a,b,c,d) {
// alert (c); 
var question = document.getElementById("question");
question.value = c;
var answer = document.getElementById("answer");
answer.value = d;
var catid = document.getElementById("catid");
catid.value = a;
var qid = document.getElementById("qid");
qid.value = b;
}

&lt;button class="modalInput" rel="#prompt" onClick="params(29,29,'In a FOX TV show, what did &amp;#039;The OC&amp;#039; stand for','Orange County');"&gt;&lt;img src=/images/exclamationmark1.png title="Is there an error in this question, report it here." &gt;&lt;/button&gt;


&lt;button class="modalInput" rel="#prompt" onClick="params(29,16,'Which reality show is named after a George Orwell character','Big Brother');"&gt;&lt;img src=/images/exclamationmark1.png title="Is there an error in this question, report it here." &gt;&lt;/button&gt;
</code></pre>

<p>First button doesnt Work, because of the #&amp;039; - Second one does... But the first one did come from using htmlspecialchars() on a string... So I thought this would do the trick?</p>

<p>You can see the page its on here: </p>

<p><a href="http://www.quizboard-cheat.com/component/com_rquote/Itemid,176/catid,29/number_items,999/quotation_marks,0/show_author,1/show_createdate,0/show_notes,0/show_quote,1/sort_column,0/sort_order,0/view,rquotes/" rel="nofollow">http://www.quizboard-cheat.com/component/com_rquote/Itemid,176/catid,29/number_items,999/quotation_marks,0/show_author,1/show_createdate,0/show_notes,0/show_quote,1/sort_column,0/sort_order,0/view,rquotes/</a></p>
