How decode the " in weibo post page

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’, ‘’ + ‘"’+ 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?


Please share your code. I can’t really understand your problem.