cannot pass a string to another function
<p>Am trying to call a fucntion with this line find(\'' + news_text + '\') but it gives me </p>

<p>SyntaxError: unterminated string literal    </p>

<p>the string might looks like this:"Barnes &amp; Noble to launch video service for Nook\r <a href="http://t.co/NTnycGYD">http://t.co/NTnycGYD</a>" </p>

<p>Here is the code which am tackling with the problem:</p>

<pre><code>            function show(news_user, news_date, news_profile_img, news_text, news_url, user_tweets) {
                $('#news-tweets')
                    .css({
                    'overflow-y': 'scroll',
                    'overflow-x': 'hidden'
                });

                $('#news-tweets')
                    .append('&lt;div class="tweets"&gt;&lt;div class="user"&gt;' + news_user + '&lt;/div&gt;&lt;div class="date"&gt;' + news_date + '&lt;/div&gt;\
          &lt;span class="clear"&gt;\
          &lt;/span&gt;&lt;div class="img"&gt;&lt;a href="' + news_profile_img + '" target="_blank"&gt;&lt;img src="' + news_profile_img + '" width="55" height="50"/&gt;\
          &lt;/a&gt;&lt;/div&gt;\
          &lt;div class="text"&gt;' + news_title + '&lt;br /&gt;&lt;a onclick="find(\'' + news_text + '\')"&gt;Show user tweets..&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;');
            }

            function find(news_text) {
                $('#user-news-tweets')
                    .html("");
                for (var x = 0; x &lt; user_tweets.length; x++) {
                    var user = user_tweets[x].user;
                    var date = user_tweets[x].date;
                    var profile_img = user_tweets[x].user_profile_img;
                    var url = user_tweets[x].url;
                    var text = user_tweets[x].text;
                    var text3 = text.replace(/\r"\/:\.`'/g, "");
                    if (text3.indexOf(news_text.substr(0, 10)) &gt; -1) {
                        $('#user-news-tweets')
                            .css({
                            'overflow-y': 'scroll',
                            'overflow-x': 'hidden'
                        });
                        $('#user-news-tweets')
                            .append('&lt;div class="tweets"&gt;&lt;div class="user"&gt;' + user + '&lt;/div&gt;&lt;div class="date"&gt;' + date + '&lt;/div&gt;\
                        &lt;span class="clear"&gt;&lt;/span&gt;&lt;div class="img"&gt;&lt;a href="' + profile_img + '" target="_blank"&gt;\
                        &lt;img src="' + profile_img + '" width="55" height="50"/&gt;&lt;/a&gt;&lt;/div&gt;\
                        &lt;div class="text"&gt;' + text + '&lt;br /&gt;&lt;/div&gt;');
                    }
                }
            }
</code></pre>
