I almost finished the random quote machine, but I have a bug and I can’t find the solution.
I encode the quote with encodeURIComponent() function, but if the qoute has a special character (eg: ') in it, it becomes converted to a html character code. I tried to convert these html char codes to normal string charachters, but it just doesn’t work. Therefore, if you want to tweet the quote, there is almost always a html char code in it.
here’s my pen:
If somebody could help me with this, I would be greatful.