public static void appendGetParamForJavascript ( final String key , final String value , final StringBuffer vars , final boolean existingVars ) { vars . append ( existingVars ? ' ' : ' ' ) ; vars . append ( key ) . append ( ' ' ) . append ( WebUtilities . escapeForUrl ( value ) ) ; }
This is a slightly different version of appendGetParam that doesn t encode the ampersand seperator . It is intended to be used in urls that are generated for javascript functions .