Movable Type Documentation > Appendices > Appendix: Template Tag Modifiers

rtrim

Removes trailing whitespace from the string.

Example

Suppose you have the string "dogs and cats    ". Notice this string has a number of trailing spaces. Applying the rtrim modifier will remove these spaces, converting this string to "dogs and cats".

<MTEntryBody rtrim="1">
This page was last updated on 2008-04-09, 09:47.  

Submit a User Contributed Note

User contributed notes are a great way to share the knowledge you have gained in using Movable Type.

If you have a technical question or problem, please visit Movable Type Support.

(If you haven't left a note here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)