Skip to main content

Documentation Index

Fetch the complete documentation index at: https://reportana.dev/llms.txt

Use this file to discover all available pages before exploring further.

Introduction

The trim filter is used to remove whitespace (or other specified characters) from the beginning and end of a string. It is useful for cleaning input data or ensuring that strings are processed without unwanted spaces.

Example of Use

Example of how to use the trim filter to remove whitespace from a string:
{% set text = '   Reportana   ' %}
{{ text|trim }}

Output Example of the Code

Result of `trim` Filter