Strings

HTML Sanitizer

2min

Overviewο»Ώο»Ώ

Use this action to sanitize HTML input string to prevent HTML Injection.

How to configure the HTML Sanitizer action?ο»Ώο»Ώο»Ώο»Ώο»Ώο»Ώ

Step 1. Create a process and give it a name.

Step 2. Drag the HTML Sanitizer action to the canvas and link it to the other actions.

Document image
ο»Ώ

Step 3. Create the variables needed for the configuration of the action, and then add them to the configuration panel:

Document image
ο»Ώ

HTML string to sanitize: you need to input a string variable which contains the value which needs to be sanitized

Encode the result checkbox: will only take care of HTML characters. It does not protect you from cross-site scripting (XSS) or JavaScript injection vulnerabilities.

Sanitized string: the output contains the returned sanitized string

Step 4. Save, Validate and Run the process.

Step 5. You will be prompted to add the HTML string for the input variable. Click Run.

Step 6. To verify the process click Check instance.

Step 7. In the Output section, you can see sanitized HTML stored in the output variable.