With the replace modifier, a specific word or text can be replaced within a sentence.
Arguments
Argument | Description |
---|---|
1 | This is the string of text to be replaced. |
2 | This is the string of text to replace with. |
With the replace modifier, a specific word or text can be replaced within a sentence.
replace
{{$text|replace:'<zoek tekst>':'<vervangende tekst>'}}
Argument | Description |
---|---|
1 | This is the string of text to be replaced. |
2 | This is the string of text to replace with. |
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.