Modifier: ensure_right


Ensures that the string ends with a specified string. If it doesn’t, it will now.

links:
  - statamic
  - wilderborn.com
{{ links }}
  <li>{{ value ensure_right=".com" }}</li>
{{ /links }}
<li>statamic.com</li>
<li>wilderborn.com</li>

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on March 31, 2016