Search code examples
nunjucks

How to check whether the substring is present in a string in Nunjucks Template


If we have a string like "This is High Price" how can I check whether "high" is present in that string or not in Nunjucks Template


Solution

  • Thanks to a GitHub issue, discovered in works like so: "high" in "This is High Price"

    Note: This is case-sensitive search.