Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
0.1
About It:
Get it:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:
Contact Reason [ ? ]

mta_sanitize

This plug-in implements a container tag (mta_sanitize) which will “sanitize” any text contained between the opening & closing tag for use in a URL. This is a wrapper around the built-in sanitizeForUrl() function and will also parse other textpattern tags that it contains.

Syntax

The @mta_sanitize tag has the following syntactic structure:

<txp:mta_sanitize>Some Text</mta_sanitize>

Attributes

The mta_sanitize tag will accept the following attribute (note: attributes are case sensitive):

code>tolower=“integer”

When set to 1 the sanitized text will be converted to lowercase. Available values: 0 or 1 (default).

Change Log

v0.1 Initial release.

Article Request Count:
Initially released:
2008-06-30
Posted here:
30 Jun 2008
Article modified:
02 Jul 2008

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:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

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

You know you want to visit the Archives.

Browse

Categories


Articles

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