Filter |raw doesn't show entity media image Using the following code for displaying content from a WYSIWYG field:
content.field_body|raw I only got the text without images added in a editor as media. When I remove filter raw I see &lt;drupal-entity data-embed-button="media_browser" data-entity-embed.... is being displayed as a text but not as image.
This output from the body field

&lt;drupal-entity data-embed-button="media_browser" data-entity-embed....


is the raw data stored in the database. The tag &lt;drupal-entity&gt; gets replaced by the text filter "Display embedded entities" when the field is rendered.

If you access the field data directly from the entity #paragraph you bypass this rendering process.

Instead of the raw filter, which doesn't help in any way, it only makes your site vulnerable to the content of the body field, you can apply the text format in a render element processed_text:

  {% set paragraph =  content.field_tabs.0['#paragraph'] %}

  {% set body = {
    '#type':   'processed_text',
    '#text':    paragraph.field_body.value,
    '#format':  paragraph.field_body.format,
  } %}

  {{ body }}