Task - HTML Encode

This task HTML encodes a string of characters, making it safe to show in HTML.

HTML Encoding settings

Description

Contains a description of the task, enter the reason for its existence here.

JSON key: description
Default value: Blank

Input

Enter the input to encode or decode here - see Scripts and Macros for details on how to specify macro content.

JSON key: input
Default value: None

Request attribute name

Name of request attribute to store encoded/decoded value within. This request attribute is stored within the context for the currently executing request.

JSON key: target.attribute.name
Default: None

JSON Configuration

Below is a set of example configuration.

{
  "input": "%{SESSION_USERNAME}",
  "target.attribute.name": "username_display",
  "description": "Encode username",
  "class": "io.ceptor.pipeline.tasks.HTMLEncodeTask"
}

© Ceptor ApS. All Rights Reserved.