# htmlQuery

Returns the specified HTML section(s).&#x20;

### Input Parameters:

```
{{ <html_value> | htmlReplace: '<HTML selector>', '<return value (optional)>', '<negative HTML selector (optional)>' }}
```

### HTML selector

The HTML selector value can be any class, tag, or id.&#x20;

Every matching selector value will be appended to the previous output.&#x20;

### return value (optional)

The value to return the HTML as.&#x20;

Can either be `innerhtml`, `outerhtml`, `nodename`, or `text`

Allowing the output to either be HTML output or converted to just the text in the HTML tags.&#x20;

### negative HTML selector

The negative HTML selector value can be any class, tag, or id.&#x20;

This will remove any HTML values that match from the output.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://motivlabs.gitbook.io/impulse-user-manual/content-manipulators-motators/liquid-field/filters/htmlquery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
