Data Converter
Convert between various data formats - Base64, Binary, JSON, XML, YAML, CSV, HTML, and more
Actions49
- Base64 Actions
- Binary Actions
- Encoding Actions
- Format Actions
- HTML Actions
- String Actions
Overview
The node provides a versatile data conversion tool that supports multiple encoding and decoding operations across various data formats. Specifically, the HTML Decode operation under the Encoding resource decodes HTML entities in a given text string back to their corresponding characters. This is useful when you receive or scrape HTML-encoded content and want to convert it into plain readable text.
Common scenarios include:
- Cleaning up HTML-encoded user input or web-scraped data.
- Preparing text for further processing or display where HTML entities are not desired.
- Decoding email bodies or other content that may contain encoded HTML entities.
Example:
Input: "<div>Hello & welcome!</div>"
Output: "<div>Hello & welcome!</div>"
Properties
| Name | Meaning |
|---|---|
| Input Data | The HTML-encoded string to decode. |
| Binary Property Name | (Optional) Name for the output binary property if binary output is enabled (not typical for HTML Decode). |
Output
- The output JSON contains a field named
resultwhich holds the decoded string with all HTML entities converted to their literal characters. - This operation does not produce binary data output.
Example output JSON structure:
{
"result": "<div>Hello & welcome!</div>"
}
Dependencies
- No external API or service dependencies are required.
- The node uses internal utility functions for HTML entity decoding.
- No special credentials or environment variables are needed.
Troubleshooting
- Empty or unchanged output: Ensure the input string actually contains HTML entities to decode.
- Malformed input: If the input string is not properly encoded or contains invalid entities, the output might be incorrect or partial.
- Large inputs: Very large strings might impact performance; consider splitting input if necessary.
- Error messages: Errors during execution typically relate to invalid input types or missing required parameters. Verify that "Input Data" is provided as a string.