Skip to content
Log in

strip_html - Liquid Filter Reference

On this page

Description

Removes all whitespace (tabs, spaces, and newlines) from both the left and right sides of a string. It does not affect spaces between words.

Property Value
Return Type string
Category text

Examples

```liquid

{{ “<p>The quick brown fox jumps over the lazy dog</p>” | strip_html }} ```

Output: The quick brown fox jumps over the lazy dog

Was this article helpful?

Was this article helpful?