Text Filters

Text filters are used to manipulate text sections.

  1. html_format
  2. autolink
  3. trim_whitespaces
  4. parameterize

html_format

Import text from Rental Description section formated with HTML tags.

Input
  {{ rental.description | html_format }}
Output
  <p> Initial description </p>

Auto link to source social media.

Example
  {{ site.social.twitter.last_tweet.text | autolink }}

trim_whitespaces

Trim whitespaces from input text.

Input
  {{ ' Example String ' | trim_whitespace }}
Output
  'ExampleString'

parameterize

Parameterize input text.

Input
  {{ 'rental 094 page' | parameterize }}
Output
  rental-094-page