Html

Html

{{ html }}

Properties of {{ html }} objects
Name Type Description
is_valid Boolean True if the value is not empty
value String The HTML input. If there are any <liquid-markup> tags, they will be evaluated exactly once. Multiple references to value will yield the same result
plain_value String The HTML input exactly as it was entered. Anytags will NOT be evaluated before returning the result
interpreted_value String Identical to value, except that template code insidetags will be evaluated every time interpreted_value is referenced
default_value String The default value (plain/uninterpreted) for this field if no value is specified
field_id String The identifier for this field
label String The label for this field
output String Same as value - except that output is clickable in the preview site while value is not. May include additional markup in the editor preview to make it easier to edit content

Allows any valid HTML input. May also include <liquid-markup> tags.

Related

{{ tags }}

Contains multiple tags.

{{ error_page }}

{{ code }}

{{ menu_item }}

{{ calendar_entry }}

{{ blog_post }}

string

Can be any text, from the empty string ("") to the full HTML output of the template. When used alone in a conditional, all strings evaluates as true - even if they are empty or a value such as "0" or "false".

{{ template }}

{{ snippet }}

{{ article }}

{{ time }}

Represents a specific instant in a specific timezone.

{{ author }}

{{ gallery_item }}

{{ tag }}

html_encode filter

Encode a string to be output as HTML. All special HTML characters will be converted to their equivalent HTML character entities (eg: &lt; becomes &lt;). This is functionally identical to the "escape" filter, though it may be more intuitive in some contexts - such as when using both the html_encode and html_decode filters to execute more advanced string manipulation.

html_encode

Related

{{ html }}

html_decode filter

Decodes any encoded HTML entities (eg: &amp;lt; becomes &lt;)

html_decode

Related

{{ html }}

strip_html filter

Removes all HTML tags from a string

strip_html

This filter uses simple pattern matching to remove HTML tags. If the input is poorly formatted or contains unusual character sequences - particularly involving the &#39;&lt;&#39; and &#39;&gt;&#39; characters - this could result in unexpected behavior.

Related

{{ html }}