@decorators.deprecated("<STR_LIT>")<EOL>def _jq_format(code):
code = code.replace('<STR_LIT:\\>', '<STR_LIT>').replace('<STR_LIT:\t>', '<STR_LIT>').replace('<STR_LIT:\n>', '<STR_LIT>')<EOL>code = code.replace('<STR_LIT>', '<STR_LIT>').replace('<STR_LIT>', '<STR_LIT>')<EOL>code = code.replace('<STR_LIT>', '<STR_LIT>').replace('<STR_LIT>', '<STR_LIT>').replace('<STR_LIT>', '<STR_LIT>')<EOL>code = code.replace('<STR_LIT>', '<STR_LIT>').replace(r'<STR_LIT>', '<STR_LIT>').replace('<STR_LIT:\r>', '<STR_LIT>')<EOL>return code<EOL>
DEPRECATED - Use re.escape() instead, which performs the intended action.
Use before throwing raw code such as 'div[tab="advanced"]' into jQuery.
Selectors with quotes inside of quotes would otherwise break jQuery.
If you just want to escape quotes, there's escape_quotes_if_needed().
This is similar to "json.dumps(value)", but with one less layer of quotes.