Replace with an array?
Is it possible to pass an array (or is it a hash—I can
never remember) for the search and replace parameters in replace?
I.e., {{ item.body | replace:
{'&',' '},{'&',' '} }}
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Steve Smith on 29 Nov, 2010 08:38 PM
No, you'll just have to do the filter twice.
{{ item.body | replace: '&', '&' | replace ' ', ' ' }}
#close