alphacooler
Programmer
I am working with Blogger BETA to add links at the end of every post (ala Digg or Delicious style), but the problem is that before I can encodeURIComponent the text, the apostrophe's from the post I am storing into a variable break it.
var title = '<data
ost.title/>';
title = encodeURIComponent(title);
var title = 'It's yet another test post.';
title = encodeURIComponent(title);
As you can see in #2 it is broken. How would I be able to handle single and double quotes?
var title = '<data
title = encodeURIComponent(title);
var title = 'It's yet another test post.';
title = encodeURIComponent(title);
As you can see in #2 it is broken. How would I be able to handle single and double quotes?