unterminated string literal Javascript
<p>I'm using the following code in php:</p>

<p>PHP:</p>

<pre><code> $suggested_sentence[0] = "Hello, how are you?";
  echo $suggested_sentence[0] . ' &lt;input type="image" src="button.png" 
  onclick = update_textarea('. $textareacount.','. "'".$suggested_sentence[0]."')/&gt;";
</code></pre>

<p>Javascript function:</p>

<pre><code>function update_textarea(count, new_sentence) {
    document.getElementById('sentence' + count).value = new_sentence;
}
</code></pre>

<p>But when i press the button i get the error "unterminated string literal but if i change the value of <code>$suggested_sentence[0] = "Hello"</code> it works fine.</p>

<p>What should i do then?</p>
