diff --git a/common/string_utils.cpp b/common/string_utils.cpp index a79b4dbbea..6b972e7e3c 100644 --- a/common/string_utils.cpp +++ b/common/string_utils.cpp @@ -196,7 +196,7 @@ wxString EscapeString( const wxString& aSource, ESCAPE_CONTEXT aContext ) } else if( aContext == CTX_JS_STR ) { - if( c >= 0x7F || c == '\'' || c == '\\' ) + if( c >= 0x7F || c == '\'' || c == '\\' || c == '(' || c == ')' ) { unsigned int code = c; char buffer[16];