Content last modified Monday 6 March 2017
hop to #bottom
Current version:
About It:
Get it:
Rate it:
  • Helpful?
  • 2 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!


Wrap text with HTML, class, prefix, suffix, and apply tranforms to it in the process. Transforms can be chained together, and include:

  • trim
  • linkify
  • format as date
  • escape
  • sanitize
  • split / combine
  • process with Textile
  • process with Forms

If the item you are intending to wrap is empty / non-existent then no wrap is applied and nothing is displayed. This makes it an ideal candidate for placing around other tags and saves having to do the “assign content to <txp:variable>, check if variable exists” dance.

<txp:else /> is supported so you may take action if the contained content is empty.

Article Request Count:
Initially released:
22 Oct 2011
Posted here:
22 Nov 2011
Article modified:
12 Nov 2012

If there is a comment form at the Information URL, you may want to leave your comments/questions there or at the Forum thread for quicker feedback. Otherwise, comment away:

Commenting is closed for this article.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.




There are also tag clouds, 'cause those are fun.
Published with Textpattern