htmlReplace

Replaces specified HTML section(s) with input HTML.

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.

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

replacement HTML

HTML value to replace the selected HTML section with.

return value (optional)

The value to return the HTML as.

Can either be html or text .

The output value will then either be HTML or simple the text value from the HTML.

Last updated