Skip to content

safe

Kept for compatibility; output is still escaped unless it’s already trusted HTML.

Values Sooquna builds as HTML (product.description, image_tag…) are never escaped twice. safe can’t turn other text into HTML.

value | safe

any

Liquid
{{ '<b>x</b>' | safe }}
Output
&lt;b&gt;x&lt;/b&gt;

Since theme platform 1.0.

Was this page helpful?