Thanks, Arie.
Second common error! It works.
And I have to correct the somewhat 'Messi' mistake i.e. 'encodeURIComponent()' method.
I think something like
Code:
String.prototype.escapeHTML = function() {
return this.replace(/&/g, "&")
.replace(/</g, "<")
.replace(/>/g, ">")
.replace(/"/g, """)
.replace(/'/g, "'");
}
will work for replacing/escaping the special characters (but not sure for the image) as you must know well.
I can discuss this matter at the 'Paid Help' section if you would like to.
Thanks again.
Bookmarks