public JavascriptVarBuilder appendText ( final String value , final boolean quoted ) { if ( quoted ) { sb . append ( "\"" ) ; if ( value != null ) { sb . append ( EscapeUtils . forJavaScript ( value ) ) ; } sb . append ( "\"" ) ; } else if ( value != null ) { sb . append ( value ) ; } return this ; }
Appends text to the var string