Field output without wrappers
Fill in your field nameItalic values are placeholders: replace them with your own machine names, or let the builder do it.
Render array
Open in builder (Render array)Reads the content render array, after field formatters run.
- Snippet 1
{{ content.field_name| render| striptags| trim }} - Snippet 2
{{ content.field_name. 0 }}
Helper module
Open in builder (Helper module)Uses a contrib module’s Twig filter or function.
{{ 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.