Skip to main content

Text Filters

Text filters are used to manipulate text sections.

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_whitespaces }}

Output​

  ExampleString

parameterize​

Parameterize input text.

Input​

  {{ 'rental 094 page' | parameterize }}

Output​

  rental-094-page

liquid​

Parses and renders Liquid content stored in a string.

Input​

  {% assign snippet = "{{ rental.title }}" %}
{{ snippet | liquid }}