对变量进行简单的搜索和替换。 等同于PHP函数的 str_replace()

参数顺序类型必选参数默认值说明
1stringYesn/a需要搜索并替换的字符
2stringYesn/a替换用的字符

例子:
articleTitle:Child's Stool Great for Use in Garden.
模板:

_{$articleTitle}_
_{$articleTitle|replace:'Garden':'Vineyard'}_
_{$articleTitle|replace:' ':'   '}_

输出:

Child's Stool Great for Use in Garden.
Child's Stool Great for Use in Vineyard.
Child's   Stool   Great   for   Use   in   Garden.