<p>You probably need to add the twig raw filter to your field variable. This will allow twig to interpret the data as safe HTML rather than just plain text.</p>

<pre><code>{{ myFieldVariable|raw }}
</code></pre>

<p>Lear more about the raw filter here: <a href="http://twig.sensiolabs.org/doc/filters/raw.html" rel="nofollow">http://twig.sensiolabs.org/doc/filters/raw.html</a></p>

CC BY-SA 3.0
2016-08-07T20:17:47.480Z
Fwiw, if you're using a plain text field for admin to drop in embed code (e.g., not using duktvideos) and see the code output as text, this fix applies there, too.
philzelnar
CC BY-SA 3.0
2016-05-23T16:43:59.067Z
2016-05-23T17:30:16.670Z
2016-05-23T17:30:16.670Z
Ethan Thompson
<p>We're using Dukt Videos to display a video on <a href="http://www.adventurekent.org/services/schools/ks1-2/adventure-kent-in-action" rel="nofollow">this page</a> of our website. However, the video no longer appears on the page and just shows the HTML for the iframe.</p>

<p>Any idea what has happened?</p>

CC BY-SA 3.0
2016-05-23T08:13:52.787Z
Twig raw filter?
John Moylan
CC BY-SA 3.0
2016-05-23T08:23:55.110Z
Ah, just seen this is for Duke plugin which I don't think needs raw.
John Moylan
CC BY-SA 3.0
2016-05-23T10:23:21.597Z
Can you post your template code? It looks like the html for the video is being outputted as a plain text string.
Luke Pearce
<plugin-duktvideos>
Video embed displays HTML code instead of video
# Video embed displays HTML code instead of video

(Asked by: username_0 on 2016-05-23)

We're using Dukt Videos to display a video on [this page](http://www.adventurekent.org/services/schools/ks1-2/adventure-kent-in-action) of our website. However, the video no longer appears on the page and just shows the HTML for the iframe.

Any idea what has happened?

**Tags:** plugin-duktvideos

> **Comments:**
> **username_1**: Twig raw filter?  
> **username_1**: Ah, just seen this is for Duke plugin which I don't think needs raw.  
> **username_2**: Can you post your template code? It looks like the html for the video is being outputted as a plain text string.  

---

## 1 answers

### Answer by username_3 on 2016-05-23. Score: 3

You probably need to add the twig raw filter to your field variable. This will allow twig to interpret the data as safe HTML rather than just plain text.
{{ myFieldVariable|raw }}

Lear more about the raw filter here: http://twig.sensiolabs.org/doc/filters/raw.html

> **Comments:**
> **username_4**: Fwiw, if you're using a plain text field for admin to drop in embed code (e.g., not using duktvideos) and see the code output as text, this fix applies there, too.  

---

