Skip to content
Twig Field Finder
Theme

Field output without wrappers

Fill in your field name

Italic values are placeholders: replace them with your own machine names, or let the builder do it.

Reads the content render array, after field formatters run.

  1. Snippet 1
    {{ content.field_name|render|striptags|trim }}
  2. Snippet 2
    {{ content.field_name.0 }}

Uses a contrib module’s Twig filter or function.

  1. {{ content.field_name|field_value }}

Gotcha

striptags drops all markup: use it only for plain text, such as attributes or meta tags. content.field_name.0 keeps the formatter’s output for the first item but skips field.html.twig.

Contrib modules used

See helper modules for what each one provides.