You are here

private function JavaScriptPacker::_escape in Advanced CSS/JS Aggregation 6

Same name and namespace in other branches
  1. 8.4 advagg_js_minify/jspacker.inc \JavaScriptPacker::_escape()
  2. 8.2 advagg_js_minify/jspacker.inc \JavaScriptPacker::_escape()
  3. 8.3 advagg_js_minify/jspacker.inc \JavaScriptPacker::_escape()
  4. 7.2 advagg_js_compress/jspacker.inc \JavaScriptPacker::_escape()
  5. 7 advagg_js_compress/jspacker.inc \JavaScriptPacker::_escape()
1 call to JavaScriptPacker::_escape()
JavaScriptPacker::_bootStrap in advagg_js_compress/jspacker.inc

File

advagg_js_compress/jspacker.inc, line 438

Class

JavaScriptPacker

Code

private function _escape($script) {
  return preg_replace('/([\\\\\'])/', '\\\\$1', $script);
}