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
Follow the installation guide in the n8n community nodes documentation.
- Validate HTML
The node doesn't require credentials
Tested with n8n version 1.99.1
- 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 stringin theAdditional Fieldscollection - 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 Tagin theAdditional Fieldscollection - optional, default:false - Specify custom rules using the
Custom Rulesfield 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.