code: public Expression makeEscapingExpression() {
          return new ExpressionSupport() {
              public String getExpressionText() {
                  return expressionText;
              }
  
              public Object evaluate(JellyContext context) {
                  Object[] args = evaluateArguments(context);
                  args = Stapler.htmlSafeArguments(args);
                  return format(args);
              }
          };
      }
docs: Creates a new {@link Expression} that performs proper HTML escaping.