> For the complete documentation index, see [llms.txt](https://motivlabs.gitbook.io/impulse-user-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://motivlabs.gitbook.io/impulse-user-manual/content-manipulators-motators/liquid-field/filters/htmlreplace.md).

# htmlReplace

Replaces specified HTML section(s) with input HTML.&#x20;

### Input Parameters:

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

### HTML selector

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

Every matching selector value will be replaced with the `replacement html` value

### replacement HTML

HTML value to replace the selected HTML section with.&#x20;

### return value (optional)

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

Can either be `html` or `text` .&#x20;

The output value will then either be HTML or simple the text value from the HTML.&#x20;
