request.setSanitizationRequested(true);
RequestRewriter rewriter = createRewriter(Collections.<String>emptySet(),
Collections.<String>emptySet());
MutableContent mc = new MutableContent(parser, response);
if (!rewriter.rewrite(request, response, mc)) {
return null;
}
return mc.getContent();
}