Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-07T20:17:47.480Z
Answers.Text: 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.
Answers.UserDisplayName: philzelnar
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-23T16:43:59.067Z
Answers.LastActivityDate: 2016-05-23T17:30:16.670Z
Answers.LastEditDate: 2016-05-23T17:30:16.670Z
Answers.UserDisplayName: Ethan Thompson
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-23T08:13:52.787Z
Comments.Text: Twig raw filter?
Comments.UserDisplayName: John Moylan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-23T08:23:55.110Z
Comments.Text: Ah, just seen this is for Duke plugin which I don't think needs raw.
Comments.UserDisplayName: John Moylan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-23T10:23:21.597Z
Comments.Text: Can you post your template code? It looks like the html for the video is being outputted as a plain text string.
Comments.UserDisplayName: Luke Pearce
Tags: <plugin-duktvideos>
Title: Video embed displays HTML code instead of video
ThreadText: # 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.  
  
  ---
  
  