How to render text including video embed field I have a formatted text field, and am using the video_embed module to allow users to embed video into that field, using the video_embed_wysiwyg submodule.
I am then trying to render the field in a block, but I simply get the JSON output in the text field:

{&quot;preview_thumbnail&quot;:&quot;/sites/default/files/styles/video_embed_wysiwyg_preview/public/video_thumbnails/A5jNGsBHHUE.jpg?itok=7fW8O9To&quot;,&quot;video_url&quot;:&quot;https://www.youtube.com/watch?v=********&quot;,&quot;settings&quot;:{&quot;responsive&quot;:1,&quot;width&quot;:&quot;854&quot;,&quot;height&quot;:&quot;480&quot;,&quot;autoplay&quot;:1},&quot;settings_summary&quot;:[&quot;Embedded
Video (Responsive, autoplaying).&quot;]}

Here is my render array:
$text=check_markup($node-&gt;get('field_html_containing_video_content')-&gt;value, $node-&gt;get('field_html_containing_video_content')-&gt;format);

    $renderArray=[
      'content'=&gt;[
        '#type'=&gt;'inline_template',
        '#template'=&gt;$text
      ]
    ];

    return $renderArray; 


I've got the video embed filter enabled on the relevant text format, and have tried changing the order of the filters.
Any ideas what i am doing wrong here?
We are using a bootstrap subtheme.
Thanks for any help given.
check_markup() is not able to handle attached metadata which some text filters need to work properly.
You have to use the render element processed_text:
$renderArray = [
  'content' =&gt; [
    '#type' =&gt; 'processed_text',
    '#text' =&gt; $node-&gt;field_html_containing_video_content-&gt;value,
    '#format' =&gt; $node-&gt;field_html_containing_video_content-&gt;format,
  ],
];

More info How to safely render node body on a custom variable?