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 <strong>brown</strong> fox jumps over the <em>lazy</em> dog</p>" | strip_html }}
Output: The quick brown fox jumps over the lazy dog