Answers.Body: <p>Use a text field (not rich text).  Then in the output, add "raw" to avoid it stripping any HTML tags.  </p>
  
  <pre><code>{{ entry.field | raw }}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-20T03:37:06.350Z
Answers.LastActivityDate: 2017-03-20T03:37:06.350Z
Answers.UserDisplayName: Todd
Body: <p>How can I embed an iframe on my site? I tried pasting the iframe code in the HTML section and it didn't appear. </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-10T18:41:06.497Z
Comments.Text: Can you provide more details for what you're trying to accomplish? Are you pasting the HTML into a template, or as a field value? As it currently stands, this question doesn't appear to be Craft-specific.
Comments.UserDisplayName: Lindsey D
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-07-24T15:49:36.300Z
Comments.Text: Hi I'm having similar problems - I want to embed a podcast from Transistor.FM <iframe src='https://share.transistor.fm/e/8a1ae567' width='100%' height='180' frameborder='0' scrolling='no' seamless='true' style='width:100%; height:180px;'></iframe> The player shows up in the entry section but not when I preview it. Any thoughts?
Comments.UserDisplayName: Marc Binkley
Tags: <embed>
Title: How can I embed an iframe on my site?
ThreadText: # How can I embed an iframe on my site?
  
  (Asked by: username_0 on 2017-03-10)
  
  How can I embed an iframe on my site? I tried pasting the iframe code in the HTML section and it didn't appear.
  
  **Tags:** embed
  
  > **Comments:**
  > **username_1**: Can you provide more details for what you're trying to accomplish? Are you pasting the HTML into a template, or as a field value? As it currently stands, this question doesn't appear to be Craft-specific.  
  > **username_2**: Hi I'm having similar problems - I want to embed a podcast from Transistor.FM <iframe src='https://share.transistor.fm/e/8a1ae567' width='100%' height='180' frameborder='0' scrolling='no' seamless='true' style='width:100%; height:180px;'></iframe> The player shows up in the entry section but not when I preview it. Any thoughts?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2017-03-20. Score: 5
  
  Use a text field (not rich text). Then in the output, add "raw" to avoid it stripping any HTML tags.
  
  ```
  {{ entry.field | raw }}
  
  ```
  
  
  ---
  
  