Text Formatting

This Article Applies to

Most shortcodes also support passing a txtfmt= parameter that lets you specify a comma delimited list of text processing functions that will be applied to the output. If you use txtfmt and capture together, the text formatting will be applied first and then the output will be captured. You can stack functions together and they will be applied in order from first/left to last/right.

addslashes
Quote string with slashes

bin2hex
Convert binary data into hexadecimal representation. The conversion is done byte-wise with the high-nibble first.

convert_uudecode
Decodes the output which must be a uuencoded string.

convert_uuencode
Encodes the output using the uuencode algorithm. Uuencode translates all strings (including binary’s ones) into printable characters, making them safe for network transmissions. Uuencoded data is about 35% larger than the original.

rawurlencode
Encodes a string for use in a URL parameter.

crc32
Outputs the crc32 polynomial of the content.

crypt
Performs a one-way string hashing on the output. Caution: No salt is used.

html_entity_decode
Convert all HTML entities to their applicable characters.

htmlentities
Convert all applicable characters in the output to HTML entities.

htmlspecialchars
Convert special characters to HTML entities.

htmlspecialchars_decode
Convert special HTML entities in the output back to characters.

intval
Convert the value to an integer and display the result. Can be useful to force an empty field to 0 for numeric displays.

lcfirst
Make the output’s first character lowercase.

ltrim
Strip whitespace from the beginning of the output.

md5
Returns the md5 hash of the output.

nl2br
Inserts HTML line breaks before all newlines in a string

remove_accents
Converts all accent characters to ASCII characters. If there are no accent characters, then the output is unaltered.

rtrim
Strip whitespace from the end of the output.

sha1
Outputs the SHA1 hash of a string.

str_rot13
Outputs the ROT13 encoding of a string. The ROT13 encoding shifts every letter by 13 places in the alphabet while leaving non-alpha characters untouched. Encoding and decoding are done by the same function, passing an encoded string as argument will return the original version.

stripslashes
Un-quotes a quoted string.

strlen
Returns the length of the output. The length is measured in bytes.

strrev
Reverses the output.

strtolower
Make the output lowercase.

strtoupper
Make the output uppercase.

ucfirst
Make a string’s first character uppercase.

trim
Strip whitespace (or other characters) from the beginning and end of a string.

ucwords
Uppercase the first character of each word in a string. The definition of a word is any string of characters that is immediately after a whitespace (These are: space, form-feed, newline, carriage return, horizontal tab, and vertical tab).

wptexturize
This returns given text with transformations of quotes to smart quotes, apostrophes, dashes, ellipses, the trademark symbol, and the multiplication symbol. Text enclosed in the tags pre-code, kdb, style, script and it will be skipped.

  • Was this Helpful?
  • YesNo
“Secret

Table of Contents

This Article Applies to

Keep Reading

confirmation link memberium

Guide to Using Confirmation Link in Memberium

You must have seen confirmation links in emails, and its like a compulsory step to proceed forward when creating an account on the site. In this small guide, you’ll learn the benefits of using confirmation link and how you can use them in your campaign. Let’s get started!

Read More »

How to use the Makepass Scanner to Ensure Customers Receive Passwords

The MakePass scanner is the latest method to create passwords for new members. Rather than relying on an unreliable HTTP POST, this new feature scans your Infusionsoft contact database for new members, generates passwords for them, and then runs a completion action on each contact. The scans run every three minutes.
You can configure your MakePass scanner by going to Memberium->Sync Options

Read More »

Known Logins Only

During normal operation, if a member attempts to login, and no local user record is found, then Memberium will search the Infusionsoft database for a

Read More »

Want to get some fresh ideas on how you can improve your membership site or course?

Download our free ebook!

Book a Call

Welcome to Memberium!

We are very excited for you to be part of our family. 

We would love to answer any questions that you have!

Please choose the best time for you to get in a call with us. 

For Technical Support, you can contact us at https://memberium.com/support/ or Email us at support@memberium.com.