i’m trying to write something like this:
$(document).ready(function()
{
$("#myTable").tablesorter( {sortList: [[0,0], [1,0]]} );
}
);
in a template, but it’s not showing up in the source code. i believe modx is trying to interpret [[0,0], [1,0]] as a snippet named: "0,0], [1,0" how can i escape the [ and ] characters so they are seen as literal text?
tried googling, but everything that came up with "modx escape" seemed to deal with escaping user input for database purposes. thanks you for any advice!