Revert "Revert "(fix) JavaScript syntax error in 'asCSSIdentifier'""

This reverts commit 662d06d24a.
pull/89/head
Ludovic Marcotte 2015-06-10 20:06:00 -04:00
parent d9896192f3
commit 54224637b6
1 changed files with 5 additions and 1 deletions

View File

@ -73,6 +73,10 @@ String.prototype.decodeEntities = function() {
});
};
String.prototype.unescapeHTMLEntities = function() {
return this.unescapeHTML().replace(/"/g,'"');
};
String.prototype.asDate = function () {
var newDate;
var date = this.split("/");
@ -97,7 +101,7 @@ String.prototype.asDate = function () {
String.prototype.asCSSIdentifier = function() {
var characters = [ '_' , '\\.', '#' , '@' , '\\*', ':' , ';' , ',' , ' ',
'\\(', '\\)', '\\[', '\\]', '\\{', '\\}',
, "'", '"', '&', '\\+' ];
"'", '"', '&', '\\+' ];
var escapeds = [ '_U_', '_D_', '_H_', '_A_', '_S_', '_C_', '_SC_', '_CO_', '_SP_',
'_LP_', '_RP_', '_LS_', '_RQ_', '_LC_', '_RC_',
'_SQ_', '_DQ_', '_AM_', '_P_' ];