When I built the Build a Random Quote Machine, I met a problem.
I added a weibo button, and the js code for the button behavior is the following
$(’#weibo-quote’).attr(‘href’, ‘http://service.weibo.com/share/share.php?language=zh_cn&title=’ + ‘"’+ currentQuote + ‘"’ + currentAuthor);
But after I click the button, in the weibo page, I saw 2
" not " ".
That’s what I got through the js code after I click the weibo button:
How can I translate them into “” here?