JavaScriptSanitizer implements Sanitizer<String> { @Override public String execute(String content) { return StringEscapeUtils.escapeJavaScript(content); }  @Override String execute(String content);  }
@Test public void testExecute() throws Exception { JavaScriptSanitizer sanitizer = new JavaScriptSanitizer(); assertEquals("\\\"Luke\\'s big head.\\\"", sanitizer.execute("\"Luke's big head.\"")); }