With the replace modifier, a specific word or text can be replaced within a sentence.

replace

{{$text|replace:'<zoek tekst>':'<vervangende tekst>'}}

Arguments

ArgumentDescription
1This is the string of text to be replaced.
2This is the string of text to replace with.

Examples

replace advanced

{{$articleTitle = 'Two Sisters Reunite after Eighteen Years at Checkout Counter.'}}

{{$articleTitle}}
{{$articleTitle|truncate:'Sisters':'Brothers'}}
{{$articleTitle|truncate:'Sisters':''}}

Output:
Two Sisters Reunite after Eighteen Years at Checkout Counter.
Two Brothers Reunite after Eighteen Years at Checkout Counter.
Two Reunite after Eighteen Years at Checkout Counter.