Skip to content

SpeedyWebHub/n8n-nodes-html-validation

Repository files navigation

n8n-nodes-html-validation

This is an n8n community node. It lets you use HTML validation in your n8n workflows.

n8n is a fair-code licensed workflow automation platform.

Installation
Operations
Credentials
Compatibility
Usage
Resources

Installation

Follow the installation guide in the n8n community nodes documentation.

Operations

  • Validate HTML

Credentials

The node doesn't require credentials

Compatibility

Tested with n8n version 1.99.1

Usage

  • Input the HTML content for verification into the field labeled as Html - required
  • Specify if empty string needs to be rejected using the field labeled as Reject empty string in the Additional Fields collection - optional, default: false
  • Specify if at least one tag needs to be present in order to the validator to accept the input using the field labeled as Require At Least One Tag in the Additional Fields collection - optional, default: false
  • Specify custom rules using the Custom Rules field in the 'Additional Fields' collection - optional, default:
{
	"extends": [
		"html-validate:recommended"
	],
	"rules": {
		"close-order": "error",
		"void-style": "off"
	}
}

For example to allow self-closing tags, you can set Custom Rules to:

{
  "extends": [
    "html-validate:recommended"
  ],

  "rules": {
    "close-order": "error",
    "no-self-closing": "off",
    "void-style": "off"
  }
}

Note: The Custom Rules field needs to be a valid JSON if set.

Resources