Returns the number of instances a string appears.
{{ haystack | find: needle }}
haystack
string. required. The string you want to find the number of occurrences in.needle
string. required. The string that you want to find the number of occurrences of.needle
occurs in haystack
.{{ "hello world hello world" | find: "hello" }}
2