javascript unterminated string constant
<p>I have the following function which I pass in a value, but this value is coming from the database. However I get the following javascript when doing the following:  </p>

<pre><code>showrootcausedetails('showrootcause',true,'&lt;%# eval("Root Cause Analysis").ToString() %&gt;')
</code></pre>

<p>I know I have to escape the characters, but How can I do that without knowing what is in the actual string?</p>

<p>Thanks,</p>

<p>Jacob</p>
