13 $("#clients").empty();
14 $.each(data, function (i, client) {
15 let active = client.active === 1 ? 'Ativo' : 'Inativo';
16 let row = ("<tr onclick=\'selectClient(" + client.id + ", \" " + client.name + " \") ' style='cursor: pointer;'><td>" + client.id + "</td><td>" + client.name + "</td><td>" + client.cpf_cnpj + "</td><td>" + active + "</td></tr>");17 $("#clients").append(row);
18 });
19 });
Escaping non-special characters in strings, template literals, and regular expressions doesn't have any effect.
"\'";
'\"';
"\#";
"\e";
`\"`;
`\"${foo}\"`;
`\#{foo}`;
/\!/;
/\@/;
"\"";
'\'';
"\x12";
"\u00a9";
"\371";
"xs\u2111";
`\``;
`\${${foo}}`;
`$\{${foo}}`;
/\/g;
/\t/g;
/\w\$\*\^\./;