HTML

Extracts elements from an html document held in msg.payload using a CSS selector.

Inputs

  • payload (string) : the html string from which to extract elements.

  • select (string) : if not configured in the edit panel the selector can be set as a property of msg.

Outputs

  • payload (array | string) : the result can be either a single message with a payload containing an array of the matched elements, or multiple messages that each contain a matched element. If multiple messages are sent they will also have parts set.

Details

This node supports a combination of CSS and jQuery selectors. See the css-select documentation for more information on the supported syntax.

Last updated