app/middleware/cache_app.rb
# Escape carrier returns and single and double quotes for JavaScript segments.
Escape carrier returns and single and double quotes for JavaScript segments.
Escape carrier returns and single and double quotes for JavaScript segments .
def escape_javascript(javascript)
    if javascript
      javascript.gsub(/(\\|<\/|\r\n|[\n\r"'])/) { JS_ESCAPE_MAP[$1] }
    else
      ''
    end
  end
def escape_javascript ( javascript ) if javascript javascript . gsub ( / ( \\ |< \/ | \r \n |[ \n \r "']) / ) { JS_ESCAPE_MAP [ $1 ] } else '' end end
Escape carrier returns and single and double quotes for JavaScript segments.
Escape carrier returns and single and double quotes for JavaScript segments .
javascript
<not_specific>