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.

Quote string with slashes

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

Decodes the output which must be a uuencoded string.

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.

Encodes a string for use in a URL parameter.

Outputs the crc32 polynomial of the content.

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

Convert all HTML entities to their applicable characters.

Convert all applicable characters in the output to HTML entities.

Convert special characters to HTML entities.

Convert special HTML entities in the output back to characters.

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

Make the output’s first character lowercase.

Strip whitespace from the beginning of the output.

Returns the md5 hash of the output.

Inserts HTML line breaks before all newlines in a string

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

Strip whitespace from the end of the output.

Outputs the SHA1 hash of a string.

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.

Un-quotes a quoted string.

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

Reverses the output.

Make the output lowercase.

Make the output uppercase.

Make a string’s first character uppercase.

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

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).

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
9 ways to add more value to your membership site

Table of Contents

This Article Applies to

Keep Reading

Field Copy HTTP POST

This function extends your Infusionsoft system with an easy way to enable you to copy the value from one field to another field on your contact record.  

Read More »

Logout Actionset

This setting gives you the ability to define an actionset that will be run when the user logs out. This action is not cacheable, and

Read More »

Create Password HTTP POST

Memberium provides tools for automating user password creation. In the original Infusionsoft Legacy Order Forms it was simple to add a password field to the order form and mark it as required. However the new Infusionsoft Order Forms don’t make it easy to do this. To simplify the new user onboarding process, we provide an HTTP POST that you can use to safely generate new passwords, which you can then email to the user in their welcome email.

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://keap.memberium.com/support/ or Email us at support@memberium.com.