Text Filters

You are here:

Text Filters

Text filters allow you to do creative adjustments to strings of text. They are placed within an output tag and are separated with a pipe character '|'.

 

Append

Show Details
v1.0

Adds a given string to the end of the input.

 

Capitalize

Show Details
v1.0

Capitalizes the first letter of each word in the string. The string 'lorem ipsum dolor' would become 'Lorem Ipsum Dolor'.

 

Decrypt

Show Details
v7.4

Decrypts an encrypted value.

 

Default

Show Details
v3.0

Returns the passed default value if the value is undefined or empty, otherwise the value of the variable.

 

Downcase

Show Details
v1.0

This filter transforms the string to lower case. The string 'Lorem Ipsum Dolor' would become 'lorem ipsum dolor'.

 

Escape

Show Details
v1.0

HTML encode string. All <tags> will be encoded to '&lt;tags&gt;'

 

EscapeDataString (aka UrlEncode)

Show Details
v5.0

Converts a string to its escaped representation using Uri.EscapeDataString (aka URL Encoding).

 

FromMarkdown

Show Details
v5.0

Converts a string of Markdown to HTML. See the Commonmark website for details on Markdown syntax.

 

HtmlDecode

Show Details
v4.0

Decodes and escaped string of HTML.

 

Humanize

Show Details
v1.0

This filter takes computer friendly strings like 'camelCase', 'underscore_a_point' or 'css-classes' and makes them friendly to us humans... 'Camel case', 'underscore a point' or 'css classes'.

 

Linkify

Show Details
v8.0

Convert strings within the text that appear to be http/ftp/https links into clickable html links

 

NewlineToBr

Show Details
v1.0

Add <br/> tags in front of all newlines in the string

 

ObfuscateEmail

Show Details
v4.0

Hides the details of an email address with enough information to confirm that it was sent to an address the user would recognize.

 

Pluralize

Show Details
v1.0

Pluralizes the provided input while taking irregular and uncountable words into consideration.

 

PluralizeForQuantity

Show Details
v4.0

Pluralizes the provided word if the quantity provided is greater than 1.

 

Possessive

Show Details
v4.0

Returns the possessive form of the string.

 

Prepend

Show Details
v1.0

Adds a given string to the beginning of the input.

 

RegExMatch

Show Details
v5.0

Tests the input against a Regular Expression to determine if it is a match.

 

Remove

Show Details
v1.0

Remove all occurrences of a given string.

 

RemoveFirst

Show Details
v1.0

Removed the first occurrence of a given string.

 

Replace

Show Details
v1.0

Replace all occurrences of a given string.

 

ReplaceFirst

Show Details
v1.0

Replace the first occurrence of a given string.

 

ReplaceLast

Show Details
v4.0

Replaces the last occurance of a string pattern with a new value.

 

Right

Show Details
v7.0

Returns the right most part of a string of the given length.

 

SanitizeSql

Show Details
v8.0

Accepts a string as input and sanitizes it for use in a SQL statement.

 

SentenceCase

Show Details
v1.0

Changes the string to be in sentence case.

 

Singularize

Show Details
v1.0

It’s like the antidote to pluralize. Makes plural words singular.

 

Size

Show Details
v1.0

Returns the length of the string.

 

Slice

Show Details
v6.0

The slice filter returns a substring, starting at the specified index. An optional second parameter can be passed to specify the length of the substring. If no second parameter is given, a substring of one character will be returned.

 

Split

Show Details
v1.0

Splits a string into an array based on a matching pattern.

 

StripHtml

Show Details
v1.0

Remove all HTML tags from the string.

 

StripNewlines

Show Details
v1.0

Remove all new line characters (\r\n) from the string.

 

TitleCase

Show Details
v1.0

Takes and ordinary string like 'of mice and men' and makes it usable as a title, 'Of Mice And Men'.

 

ToCssClass

Show Details
v1.0

Converts string to a CSS class name format (e.g. home-phone).

 

ToPascal

Show Details
v1.0

For all the programmers in the house.. this will take a string and return it back in PascalCase.

 

Trim

Show Details
v4.0

Removes all blank spaces at the beginning and end of a string.

 

Truncate

Show Details
v1.0

Will shorten the input down to the provided size and append an optional string to the end. The length of the appending string will be counted in the truncate size. If no appending string is provided '...' will be used.

 

TruncateWords

Show Details
v1.0

Shortens the input to the number of words provided and appends an optional string to the end. If no appending string is provided it will use '...'.

 

UnescapeDataString (aka UrlDecode)

Show Details
v8.0

Converts a string to its escaped representation using Uri.EscapeDataString (aka URL Decoding).

 

Upcase

Show Details
v1.0

This filter transforms the string to all upper case. The string 'Lorem Ipsum Dolor' would become 'LOREM IPSUM DOLOR'.

 

WithFallback

Show Details
v6.0

This filter allows you to eliminate conditional tests for null or empty values by allowing you to provide fallback text.