Skip to main content

Function: remove()

remove(this, left, subString): string | Markup

Return the input value with all occurrences of the argument substring removed.

Parameters

this: FilterContext

An object containing a reference to the active render context and any keyword/named arguments.

left: unknown

Any value. Will be coerced to a string if it's not one already.

subString: unknown

Any value. Will be coerced to a string if it's not one already.

Returns

string | Markup

The input value with all occurrences of the argument substring removed.

Defined in

src/builtin/filters/string.ts:194