Unescape HTML
Converts HTML entities in a string back to their corresponding characters.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- Unescape String - The input string containing HTML entities to convert.
Options
This node does not have any options.
Output
- Unescaped - The string with HTML entities converted back to characters.
How It Works
The Unescape HTML node converts HTML entities in a string back to their corresponding characters. When executed, the node:
- Retrieves the Unescape String input variable
- Validates that the string is not empty
- Uses the html.UnescapeString function to convert HTML entities:
<
becomes<
>
becomes>
&
becomes&
"
becomes"
'
becomes'
- And other standard HTML entities
- Sets the unescaped string as the output variable
Requirements
- A non-empty string input containing HTML entities to unescape
Error Handling
The node will return specific errors in the following cases:
- Empty or invalid Unescape String input - "Unescape String can not be empty"
Usage Notes
- Useful for processing text that has been HTML-escaped and needs to be converted back to its original form
- Commonly used after extracting text from HTML sources that may contain escaped characters
- The reverse operation (converting characters to entities) can be performed with the Escape HTML node
- Does not modify characters that are not HTML entities
- Handles both named entities (like
&
) and numeric entities (like'
) - The output string will be the same length or shorter than the input if entities were present
- Works with standard HTML entities as defined in the HTML specification
- Can handle multiple entities in a single string
- Useful for cleaning up text extracted from web pages or HTML documents