diff --git a/assets/uswds/js/uswds.js b/assets/uswds/js/uswds.js index 06daa22..fb870ae 100644 --- a/assets/uswds/js/uswds.js +++ b/assets/uswds/js/uswds.js @@ -628,7 +628,7 @@ var trim = String.prototype.trim ? function (str) { return str.replace(RE_TRIM, ''); }; var queryById = function (id) { - return this.querySelector('[id="' + id.replace(/"/g, '\\"') + '"]'); + return this.querySelector('[id="' + id.replace(/\\/g, '\\\\').replace(/"/g, '\\"') + '"]'); }; module.exports = function resolveIds(ids, doc) { if (typeof ids !== 'string') {